Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix edeploy plugin puts too much data in Ironic extra column #2

Closed
wants to merge 1 commit into from
Closed

Conversation

trown
Copy link
Contributor

@trown trown commented Jun 12, 2015

The edeploy plugin stores all of the facts it collects in the extra
column of the Ironic db. When using real hardware, edeploy collects a
large amount of facts and can lead to overflowing that column.

This patch fixes this by storing the collected data in Swift instead.
This makes it usable more generically as well. Anything stored on the
'data' key in the dictionary returned by the ramdisk is stored as a
JSON encoded string in a Swift object. The object is named
'extra_hardware-' and is stored in the 'ironic-inspector'
container.

Backport of: https://review.openstack.org/#/c/189427

The edeploy plugin stores all of the facts it collects in the extra
column of the Ironic db. When using real hardware, edeploy collects a
large amount of facts and can lead to overflowing that column.

This patch fixes this by storing the collected data in Swift instead.
This makes it usable more generically as well. Anything stored on the
'data' key in the dictionary returned by the ramdisk is stored as a
JSON encoded string in a Swift object. The object is named
'extra_hardware-<node uuid>' and is stored in the 'ironic-inspector'
container.

Change-Id: Ie9e017df735a95350991ce419fa3b64249819d70
Closes-Bug: 1461252

Conflicts:
	example.conf
	ironic_discoverd/plugins/edeploy.py
	ironic_discoverd/test/test_plugins_edeploy.py
	setup.py
	tox.ini
@trown
Copy link
Contributor Author

trown commented Jun 12, 2015

I tested this backport. We probably want to add the configuration options to instack-undercloud before merging this.

@trown trown closed this Jun 12, 2015
@trown
Copy link
Contributor Author

trown commented Jun 12, 2015

We actually want to propose this to mgt-kilo.

trown pushed a commit to rdo-management/instack-undercloud that referenced this pull request Jun 15, 2015
We need to configure Swift credentials in order to use:

rdo-management/ironic-discoverd#2

That backport will resolve the issue reported in bz#1227755
(discoverd edeploy plugin puts too much data in Ironic
extra column).

Change-Id: I53c7c50e9b02b3ebc62b1d85556d316dd0bc9442
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant