Red Hat Bugzilla – Bug 1275102
Allow overriding CirrosOS location during tempest tests
Last modified: 2016-05-25 04:17:03 EDT
What problem/issue/behavior are you having trouble with? What do you expect to see?
Red Hat OpenStack Director extends the "openstack" CLI tool with tempest tests to validate the correct deployment of the Overcloud. As instructed in the Director manual, tempest tests are ran like this:
openstack overcloud validate --overcloud-auth-url $OS_AUTH_URL -- overcloud-admin-password $OS_PASSWORD
During the process, the script tries to download a CirrOS image from the Internet, but the host where the tempest tests are ran does not have Internet connection.
Meanwhile we haven't figured out a proper way to prevent the CirrOS image from being downloaded other than hacking the code in /usr/lib/python2.7/site-packages/rdomanager_oscplugin/v1/overcloud_validate.py:
$ sudo diff -u /usr/lib/python2.7/site-packages/rdomanager_oscplugin/v1/overcloud_validate.py.orig /usr/lib/python2.7/site-packages/rdomanager_oscplugin/v1/overcloud_validate.py
--- /usr/lib/python2.7/site-packages/rdomanager_oscplugin/v1/overcloud_validate.py.orig 2015-10-06 15:03:02.661793027 +0200
+++ /usr/lib/python2.7/site-packages/rdomanager_oscplugin/v1/overcloud_validate.py 2015-10-06 15:03:09.933974542 +0200
@@ -45,6 +45,7 @@
utils.run_shell('./tools/config_tempest.py --out etc/tempest.conf '
'--deployer-input %(partial_config_file)s '
+ '--image /home/stack/images/cirros-0.3.1-x86_64-disk.img '
'--debug --create '
'identity.uri %(auth_url)s '
'compute.allow_tenant_isolation true '
Could you please enhance the "openstack" plugin that comes with RDO Manager to allow overriding the location of the CirrOS image?
Where are you experiencing the behavior? What environment?
It would be useful to have the ability of overriding the CirrOS image location. The tempest configuration part is smart enough to detect whether it's a local file or an HTTP or HTTP/S link.
When does the behavior occur? Frequently? Repeatedly? At certain times?
Some patch attached to the BZ for being review it and looking for a regular OSP director supported rpm one.
Created attachment 1097096 [details]
patch to support openstack overcloud validate --image /path/to/your/image/file.qcow2
Just checking: do we have a newer possible timeframe for the implementation of this feature?
Not really sure myself, just catching up with the emails after the summit. In any case, let's ask the assignee and the QA contact.
@athomas,@achernet, any info on this? Were you aware of the request?
I think this is not valid anymore. The openstack overcloud validate has been removed in favor of using the tempest command line directly. Current documentation indicates this as well:
It says to run config_tempest.py yourself and you can specify the options you want there.