cannot set injected_files in build_instance pre hook
Bug #1518321 reported by
Richard Megginson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Juan Antonio Osorio Robles | ||
Liberty |
Fix Released
|
Medium
|
Matt Riedemann |
Bug Description
http://
I have some code that uses the build_instance pre hook to set
injected_files in the new instance. With the kilo code, the argv[7] was
passed as [] - so I could append/extend this value to add more
injected_files. With the latest code, this is passed as None, so I
can't set it.
tags: | added: api |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
assignee: | Juan Antonio Osorio Robles (juan-osorio-robles) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Juan Antonio Osorio Robles (juan-osorio-robles) |
tags: | added: liberty-backport-potential |
tags: | removed: liberty-backport-potential |
To post a comment you must log in.
from https:/ /github. com/richm/ rdo-vm- factory/ blob/master/ rdo-ipa- nova/novahooks. py#L248::
def pre(self, *args, **kwargs): b64encode( ipaotp) )
args[7] .extend( self.inject_ files)
args[7] .append( ipainject)
# args[7] is the injected_files parameter array
# the value is ('filename', 'base64 encoded contents')
ipaotp = str(uuid.uuid4())
ipainject = ('/tmp/ipaotp', base64.
This doesn't work anymore because args[7] is None.