Get keystone, glance and nova running
cover Get keystone, glance and nova running
I am continuing work to get 'master' functional again. That is we should be able to perform the steps in README.setup to prep and spin up and instance of the cirros image. With the commits in this series I have managed to restore some functionality to keystone, glance and nova.
I am now able to execute 'keystone tenant-list', 'glance image-list' and many other commands without error.
I will continue to work towards the goal of getting the basic openstack usecases running again so expect further commits or series of commits in the coming days. As usual some of these changes might apply to other branches, for now my focus is on master.
Mark
PATCH 1/3 python-nova: add missing dependency on sqlparse
Attempting to use nova-manage, for example to perform 'service list', will result in a python trace indicating that the sqlparse module was not found. Add the python-sqlparse recipe and include it in the RDEPENDS list for nova.
--- .../recipes-devtools/python/python-nova_git.bb | 1 + .../python/python-sqlparse_0.1.16.bb | 27 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-sqlparse_0.1.16.bb
meta-openstack/recipes-devtools/python/python-nova_git.bb +1 -0
@@ -322,6 +322,7 @@ RDEPENDS_${PN} = " libvirt \ python-posix-ipc \ python-rfc3986 \ python-oslo.i18n \ + python-sqlparse \ " RDEPENDS_${SRCNAME}-common = "${PN} openssl openssl-misc libxml2 libxslt \
meta-openstack/recipes-devtools/python/python-sqlparse_0.1.16.bb new file +27 -0
@@ -0,0 +1,27 @@ +DESCRIPTION = "Non-validating SQL parser module" +HOMEPAGE = "http://pypi.python.org/pypi/sqlparse" +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://COPYING;md5=13ec2f893997ca1f516b55496e019a81" + +SRCNAME = "sqlparse" +SRC_URI = "http://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" + +SRC_URI[md5sum] = "370962a307ebaaa70a28b6b0ccb53980" +SRC_URI[sha256sum] = "678c6c36ca4b01405177da8b84eecf92ec92c9f6c762396c965bb5d305f20f81" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +export BUILD_SYS +export HOST_SYS + +inherit setuptools + +# DEPENDS_default: python-pip + +DEPENDS += " \ + " + +# RDEPENDS_default: +RDEPENDS_${PN} += " \ + "
Signature · 1 line
2.1.4
PATCH 2/3 glance: add new dependencies
In reply to Mark AsselstineAttempting to run glance-api several python traces are encountered. The following packages were identified in the traces and as such are added as dependencies which allows glance-api to launch successfully.
--- .../recipes-devtools/python/python-glance_git.bb | 5 +++- .../python/python-oslo.vmware_1.19.0.bb | 24 +++++++++++++++++++ .../python/python-semantic-version_2.4.2.bb | 27 ++++++++++++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 meta-openstack/recipes-devtools/python/python-oslo.vmware_1.19.0.bb create mode 100644 meta-openstack/recipes-devtools/python/python-semantic-version_2.4.2.bb
meta-openstack/recipes-devtools/python/python-glance_git.bb +4 -1
@@ -197,7 +197,10 @@ RDEPENDS_${PN} += "python-greenlet \ python-oslo.i18n \ python-osprofiler \ python-retrying \ - python-glancestore \ + python-glancestore \ + python-enum34 \ + python-semantic-version \ + python-oslo.vmware \ " RDEPENDS_${SRCNAME} = "${PN} \
meta-openstack/recipes-devtools/python/python-oslo.vmware_1.19.0.bb new file +24 -0
@@ -0,0 +1,24 @@ +DESCRIPTION = "oslo.vmware library" +HOMEPAGE = "http://launchpad.net/oslo" +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" + + +SRCNAME = "oslo.vmware" +SRC_URI = "http://pypi.python.org/packages/source/o/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" + +SRC_URI[md5sum] = "3115d6922ed7119cf3737af708a7984d" +SRC_URI[sha256sum] = "d342420fa272bd80ac9c39e876ee1a518b975d21cff1c179a91da48305c9b3b4" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +inherit setuptools + +DEPENDS += " \ + python-pip \ + python-pbr \ + " + +RDEPENDS_${PN} += " \ + "
meta-openstack/recipes-devtools/python/python-semantic-version_2.4.2.bb new file +27 -0
@@ -0,0 +1,27 @@ +DESCRIPTION = "A library which provides a few tools to handle SemVer in Python." +HOMEPAGE = "http://pypi.python.org/pypi/semantic_version" +SECTION = "devel/python" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a7dcaa0740d59f8f13ef05a3d0ed7313" + +SRCNAME = "semantic_version" +SRC_URI = "http://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" + +SRC_URI[md5sum] = "fd7d5ade76e78d8540b9a4044496a57c" +SRC_URI[sha256sum] = "7e8b7fa74a3bc9b6e90b15b83b9bc2377c78eaeae3447516425f475d5d6932d2" + +S = "${WORKDIR}/${SRCNAME}-${PV}" + +#export BUILD_SYS +#export HOST_SYS + +inherit setuptools + +# DEPENDS_default: python-pip + +DEPENDS += " \ + " + +# RDEPENDS_default: +RDEPENDS_${PN} += " \ + "
Signature · 1 line
2.1.4
PATCH 3/3 keystone: the 'sql' section is deprecated
In reply to Mark AsselstineAttempting to use commands such as 'glance image-list' or 'keystone tenant-list' was resulting in various errors including 'error 500'. Examining the logs it was found that keystone was throwing the following warning:
WARNING oslo_config.cfg [-] Option "connection" from group "sql" is deprecated. Use option "connection" from group "database".
Examining the database I found that the keystone database existed but was empty. This indicates that some of the install scripts were failing, possibly due to issues connecting to the database due to a bad configuration. So taking the WARNING to heed I swapped the 'sql' section header for 'database' and now the database is properly created and keystone commands can be successfully executed.
--- meta-openstack/recipes-devtools/python/python-keystone/keystone.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-openstack/recipes-devtools/python/python-keystone/keystone.conf +1 -1
@@ -73,7 +73,7 @@ admin_token=%SERVICE_TOKEN% # or a module with notify() method: # onready = keystone.common.systemd -[sql] +[database] # The SQLAlchemy connection string used to connect to the database connection = postgresql://%DB_USER%:%DB_PASSWORD%@localhost/keystone
Signature · 1 line
2.1.4
Bruce Ashfield
Appliedmerged to master.
Bruce
Quoted 20 lines · Mark Asselstine
I am continuing work to get 'master' functional again. That is we should be able to perform the steps in README.setup to prep and spin up and instance of the cirros image. With the commits in this series I have managed to restore some functionality to keystone, glance and nova.
I am now able to execute 'keystone tenant-list', 'glance image-list' and many other commands without error.
I will continue to work towards the goal of getting the basic openstack usecases running again so expect further commits or series of commits in the coming days. As usual some of these changes might apply to other branches, for now my focus is on master.
Mark
--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"