Failed to stop openstack-keystone.service: Unit openstack-keystone.service not loaded.
Masber opened this issue · comments
Hi,
My environment:
centos 7
ceph hammer
I installed the openstack newton repositories
I do the installation until this point:
+ sleep 3
+ MYSQL_KEYSTONE_USER=keystone
+ MYSQL_KEYSTONE_PASSWORD=019f2656a3fe717a7223
+ KEYSTONE_HOST=192.168.1.100
+ ADMIN_PASSWORD=0c19bc8e5d15dba3f1d6
+ ADMIN_TOKEN=92086306346bc509c506
+ SERVICE_TOKEN=92086306346bc509c506
+ ADMIN_USER=admin
+ SERVICE_TENANT_NAME=service
+ setup_keystone
++ is_service_enabled 192.168.1.100
++ set +o xtrace
+ [[ 1 -gt 0 ]]
+ unset http_proxy
+ unset https_proxy
+ unset ftp_proxy
+ export OS_USERNAME=
+ OS_USERNAME=
+ export OS_AUTH_KEY=
+ OS_AUTH_KEY=
+ export OS_AUTH_TENANT=
+ OS_AUTH_TENANT=
+ export OS_STRATEGY=
+ OS_STRATEGY=
+ export OS_AUTH_STRATEGY=
+ OS_AUTH_STRATEGY=
+ export OS_AUTH_URL=
+ OS_AUTH_URL=
+ export SERVICE_ENDPOINT=
+ SERVICE_ENDPOINT=
+ BASE_SQL_CONN=mysql://keystone:019f2656a3fe717a7223@192.168.1.100
+ KEYSTONE_AUTH_HOST=192.168.1.100
+ KEYSTONE_AUTH_PORT=35357
+ KEYSTONE_AUTH_PROTOCOL=http
+ KEYSTONE_SERVICE_HOST=192.168.1.100
+ KEYSTONE_SERVICE_PORT=5000
+ KEYSTONE_SERVICE_PROTOCOL=http
+ SERVICE_ENDPOINT=http://192.168.1.100:35357/v2.0
+ KEYSTONE_CATALOG_BACKEND=sql
+ logfile=/var/log/keystone/keystone.log
+ service openstack-keystone stop
Redirecting to /bin/systemctl stop openstack-keystone.service
Failed to stop openstack-keystone.service: Unit openstack-keystone.service not loaded.
I checked the services and openstack-keystone.service is not there
Any advise?
thank you very much
You should add the epel repo manually. But you should not add the openstack repo by yourself. Other packages have been involved in https://github.com/01org/vsm-dependencies. When you run the install.sh script, you will get the packages from the website.
ok, I reinstalled the OS in order to start a new clean installation.
I did:
- sudo yum install epel-release
- manually added the ceph repositories
- change the github link to the vsm-dependencies to wget https://github.com/01org/vsm-dependencies/tree/$DEPENDENCE_BRANCH/repo/$i
- openstack repo have not been added manually.
This is the command I use for installation:
./install.sh -m /root/2.2.0-521/manifest --controller 192.168.1.100 -u luffy -v master --prepare
This is how far I am getting now:
--> Running transaction check
---> Package libtommath.x86_64 0:0.42.0-4.el7 will be installed
---> Package vsm.noarch 0:2.2.0-521 will be installed
--> Processing Dependency: python-oslo-config for package: vsm-2.2.0-521.noarch
--> Processing Dependency: python-novaclient for package: vsm-2.2.0-521.noarch
--> Processing Dependency: python-keystoneclient for package: vsm-2.2.0-521.noarch
--> Processing Dependency: python-cinderclient for package: vsm-2.2.0-521.noarch
---> Package vsm-dashboard.noarch 0:2.2.0-521 will be installed
--> Processing Dependency: python-oslo-config for package: vsm-dashboard-2.2.0-521.noarch
--> Processing Dependency: python-keystoneclient for package: vsm-dashboard-2.2.0-521.noarch
--> Processing Dependency: python-django-openstack-auth for package: vsm-dashboard-2.2.0-521.noarch
--> Processing Dependency: python-django-horizon for package: vsm-dashboard-2.2.0-521.noarch
--> Finished Dependency Resolution
Error: Package: vsm-dashboard-2.2.0-521.noarch (vsmdeprepo)
Requires: python-django-openstack-auth
Error: Package: vsm-dashboard-2.2.0-521.noarch (vsmdeprepo)
Requires: python-django-horizon
Error: Package: vsm-2.2.0-521.noarch (vsmdeprepo)
Requires: python-oslo-config
Error: Package: vsm-dashboard-2.2.0-521.noarch (vsmdeprepo)
Requires: python-oslo-config
Error: Package: vsm-2.2.0-521.noarch (vsmdeprepo)
Requires: python-novaclient
Error: Package: vsm-dashboard-2.2.0-521.noarch (vsmdeprepo)
Requires: python-keystoneclient
Error: Package: vsm-2.2.0-521.noarch (vsmdeprepo)
Requires: python-cinderclient
Error: Package: vsm-2.2.0-521.noarch (vsmdeprepo)
Requires: python-keystoneclient
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I can see the libraries in github but not sure why they are not installing
thank you
"--check-dependence-package" add this to check dependence packages in vsm-dep-repo
looks like is missing:
+ wget https://github.com/01org/vsm-dependencies/tree/master/repo/apr-util-ldap-1.5.2-6.el7.x86_64.rpm
--2016-12-27 17:14:59-- https://github.com/01org/vsm-dependencies/tree/master/repo/apr-util-ldap-1.5.2-6.el7.x86_64.rpm
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-12-27 17:15:00 ERROR 404: Not Found.
add "-v 2.1" param
[root@cephclient 2.2.0-521]# ./install.sh -m /root/2.2.0-521/manifest --controller 192.168.1.100 -u luffy -v 2.1 --prepare --check-dependence-package
+ echo 'Before auto deploy the vsm, please be sure that you have set the manifest
such as manifest/192.168.100.100/server.manifest. And you have changed the file, too.'
Before auto deploy the vsm, please be sure that you have set the manifest
such as manifest/192.168.100.100/server.manifest. And you have changed the file, too.
+ sleep 5
+++ dirname ./install.sh
++ cd .
++ pwd
+ TOPDIR=/root/2.2.0-521
++ mktemp
+ TEMP=/tmp/tmp.g1vFAADHhN
+ rm -rfv /tmp/tmp.g1vFAADHhN
+ mkdir -p /tmp/tmp.g1vFAADHhN
++ hostname
+ HOSTNAME=cephclient.local
++ hostname -I
+ HOSTIP='129.94.72.52 192.168.1.100 '
+ PATH_N=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
+ source /root/2.2.0-521/installrc
++ AGENT_ADDRESS_LIST='192.168.1.43 192.168.1.42'
++ CONTROLLER_ADDRESS=192.168.1.100
+ '[' -z /root/2.2.0-521/manifest ']'
+ [[ 192.168.1.100 != '' ]]
+ CONTROLLER_ADDRESS=192.168.1.100
+ IS_CONTROLLER=0
+ for ip in '$HOSTIP'
+ '[' 129.94.72.52 == 192.168.1.100 ']'
+ for ip in '$HOSTIP'
+ '[' 192.168.1.100 == 192.168.1.100 ']'
+ IS_CONTROLLER=1
+ [[ cephclient.local == 192.168.1.100 ]]
+ '[' 1 -eq 0 ']'
+ echo '[Info]: You run the tool in the controller server.'
[Info]: You run the tool in the controller server.
+ [[ True == False ]]
+ [[ True == True ]]
+ prepare
+ check_vsm_package
+ [[ ! -d vsmrepo ]]
+ cd vsmrepo
++ ls
++ wc -l
++ grep python-vsmclient-2.2.0-521.noarch.rpm
+ IS_PYTHON_VSMCLIENT=1
++ ls
++ grep -v python-vsmclient
++ grep -v vsm-dashboard
++ grep -v vsm-deploy
++ grep vsm
++ wc -l
+ IS_VSM=1
++ ls
++ grep vsm-dashboard-2.2.0-521.noarch.rpm
++ wc -l
+ IS_VSM_DASHBOARD=1
++ ls
++ grep vsm-deploy-2.2.0-521.x86_64.rpm
++ wc -l
+ IS_VSM_DEPLOY=1
+ [[ 1 -gt 0 ]]
+ [[ 1 -gt 0 ]]
+ [[ 1 -gt 0 ]]
+ [[ 1 -gt 0 ]]
+ echo 'The vsm pachages have been already prepared'
The vsm pachages have been already prepared
+ cd /root/2.2.0-521
+ download_dependencies
+ [[ ! -d vsm-dep-repo ]]
+ [[ -d vsm-dep-repo ]]
+ [[ True == True ]]
+ cd vsm-dep-repo
++ cat /root/2.2.0-521/rpms.lst
+ for i in '`cat $TOPDIR/rpms.lst`'
+ pkg_name=apr-util-ldap-1.5.2-6.el7.x86_
++ ls
++ grep apr-util-ldap-1.5.2-6.el7.x86_
++ wc -l
+ [[ 0 -eq 0 ]]
+ wget https://github.com/01org/vsm-dependencies/tree/2.1/repo/apr-util-ldap-1.5.2-6.el7.x86_64.rpm
--2016-12-27 17:26:02-- https://github.com/01org/vsm-dependencies/tree/2.1/repo/apr-util-ldap-1.5.2-6.el7.x86_64.rpm
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-12-27 17:26:03 ERROR 404: Not Found.
Do I need to download 2.1 release?
No. The 2.2 vsm-dependencies is not correct.
You have changed the install.sh by yourself. Please change back. And I think it will be ok.
ok, install.sh has been restored.
I used same command as before
./install.sh -m /root/2.2.0-521/manifest --controller 192.168.1.100 -u luffy -v 2.1 --prepare --check-dependence-package
Error: Package: 1:ceph-0.80.7-0.8.el7.x86_64 (epel)
Requires: librados2 = 1:0.80.7
Available: 1:librados2-0.80.7-0.8.el7.x86_64 (epel)
librados2 = 1:0.80.7-0.8.el7
Installing: 1:librados2-0.94.5-1.el7.x86_64 (base)
librados2 = 1:0.94.5-1.el7
Error: Package: 1:rbd-fuse-0.80.7-0.8.el7.x86_64 (epel)
Requires: librados2 = 1:0.80.7
Available: 1:librados2-0.80.7-0.8.el7.x86_64 (epel)
librados2 = 1:0.80.7-0.8.el7
Installing: 1:librados2-0.94.5-1.el7.x86_64 (base)
librados2 = 1:0.94.5-1.el7
Error: Package: 1:rbd-fuse-0.80.7-0.8.el7.x86_64 (epel)
Requires: librbd1 = 1:0.80.7
Available: 1:librbd1-0.80.7-0.8.el7.x86_64 (epel)
librbd1 = 1:0.80.7-0.8.el7
Installing: 1:librbd1-0.94.5-1.el7.x86_64 (base)
librbd1 = 1:0.94.5-1.el7
Error: Package: 1:ceph-radosgw-0.80.7-0.8.el7.x86_64 (epel)
Requires: librados2 = 1:0.80.7
Available: 1:librados2-0.80.7-0.8.el7.x86_64 (epel)
librados2 = 1:0.80.7-0.8.el7
Installing: 1:librados2-0.94.5-1.el7.x86_64 (base)
librados2 = 1:0.94.5-1.el7
Error: Package: 1:ceph-common-0.80.7-0.8.el7.x86_64 (epel)
Requires: python-rbd = 1:0.80.7
Available: 1:python-rbd-0.94.5-1.el7.x86_64 (base)
python-rbd = 1:0.94.5-1.el7
Error: Package: 1:python-cephfs-0.80.7-0.8.el7.x86_64 (epel)
Requires: python-rados = 1:0.80.7
Available: 1:python-rados-0.94.5-1.el7.x86_64 (base)
python-rados = 1:0.94.5-1.el7
Error: Package: 1:ceph-common-0.80.7-0.8.el7.x86_64 (epel)
Requires: librbd1 = 1:0.80.7
Available: 1:librbd1-0.80.7-0.8.el7.x86_64 (epel)
librbd1 = 1:0.80.7-0.8.el7
Installing: 1:librbd1-0.94.5-1.el7.x86_64 (base)
librbd1 = 1:0.94.5-1.el7
Error: Package: 1:ceph-common-0.80.7-0.8.el7.x86_64 (epel)
Requires: librados2 = 1:0.80.7
Available: 1:librados2-0.80.7-0.8.el7.x86_64 (epel)
librados2 = 1:0.80.7-0.8.el7
Installing: 1:librados2-0.94.5-1.el7.x86_64 (base)
librados2 = 1:0.94.5-1.el7
Error: Package: 1:ceph-common-0.80.7-0.8.el7.x86_64 (epel)
Requires: python-rados = 1:0.80.7
Available: 1:python-rados-0.94.5-1.el7.x86_64 (base)
python-rados = 1:0.94.5-1.el7
Error: Package: 1:ceph-0.80.7-0.8.el7.x86_64 (epel)
Requires: python-rados = 1:0.80.7
Available: 1:python-rados-0.94.5-1.el7.x86_64 (base)
python-rados = 1:0.94.5-1.el7
Error: Package: 1:ceph-0.80.7-0.8.el7.x86_64 (epel)
Requires: librbd1 = 1:0.80.7
Available: 1:librbd1-0.80.7-0.8.el7.x86_64 (epel)
librbd1 = 1:0.80.7-0.8.el7
Installing: 1:librbd1-0.94.5-1.el7.x86_64 (base)
librbd1 = 1:0.94.5-1.el7
Error: Package: 1:ceph-0.80.7-0.8.el7.x86_64 (epel)
Requires: python-rbd = 1:0.80.7
Available: 1:python-rbd-0.94.5-1.el7.x86_64 (base)
python-rbd = 1:0.94.5-1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
make sure that you are in the folder with install.sh
clean up the environment.
- yum remove ceph ceph-common ceph-osd ceph-mds ceph-mon ceph-radosgw librbd1 librados2 -y;yum autoremove -y
- rm -rf vsm-dep-repo;rm -rf /opt/vsm-dep-repo;rm -rf /etc/yum.repos.d/vsm-dep.repo;rm -rf /tmp/vsm-dep-repo
- yum makecache
- ./install.sh --controller 192.168.1.100 -u luffy -v 2.1 --prepare --check-dependence-package
I don't think it made much difference. I have attached the whole process.
I think you add the wrong ceph repo[baseurl=http://download.ceph.com/rpm-hammer/el6/noarch].
Did you edit the ceph.repo manually?
You can add it like "yum install centos-release-ceph-hammer.noarch" or "rpm --import 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc';su -c 'rpm -Uvh http://ceph.com/rpm-hammer/el7/noarch/ceph-release-1-0.el7.noarch.rpm'"
It is installed now!
thank you!