diff options
| author | Jim Rollenhagen <jim@jimrollenhagen.com> | 2014-04-10 11:16:05 -0700 |
|---|---|---|
| committer | Jim Rollenhagen <jim@jimrollenhagen.com> | 2014-04-24 13:00:24 -0700 |
| commit | 620f05eb33bc2cca08124a084354fa1f41bcd30e (patch) | |
| tree | 6c7f3811eaf831bbc972e72fd259f3dee7317dbb /ironic_python_agent/cmd | |
| parent | ab46681e33506bd2214a7c520ce945134d4c5c7c (diff) | |
| download | ironic-python-agent-620f05eb33bc2cca08124a084354fa1f41bcd30e.tar.gz | |
Accept new parameters for `prepare_image`
The parameters sent to `prepare_image` changed in
https://review.openstack.org/#/c/86490/
This patch brings `prepare_image` up to date with that change.
It also changes the way configdrive is written to disk, to match
that Ironic is now allowing Nova to build an ISO partition and
send the raw image to the agent.
This patch also swaps out subprocess.call for processutils.execute
in the standby module, since the commands were being changed anyway.
Lastly, this patch changes the expected `hashes` dict to be a
string parameter called `checksum`, to match what glance returns.
Change-Id: Id8af9be920ba51e7e1ce60f4ffd1477e413582c9
Diffstat (limited to 'ironic_python_agent/cmd')
| -rw-r--r-- | ironic_python_agent/cmd/agent.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic_python_agent/cmd/agent.py b/ironic_python_agent/cmd/agent.py index 31390378..770d6f17 100644 --- a/ironic_python_agent/cmd/agent.py +++ b/ironic_python_agent/cmd/agent.py @@ -18,7 +18,8 @@ from ironic_python_agent import agent from ironic_python_agent.openstack.common import log -LOG = log.getLogger() +log.setup('ironic-python-agent') +LOG = log.getLogger(__name__) def _get_kernel_params(): |
