a kernel option for ubuntu breaks cobbler import distro in cobbler.sh

Bug #1393725 reported by Jerry Zhao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compass
Fix Committed
Undecided
Unassigned

Bug Description

Usage: cobbler [options]

cobbler: error: no such option: --kopts
failed to import /mnt/Ubuntu-12.04-x86_64
lock /tmp/install.sh

    sudo cobbler import --path=/mnt/${UBUNTU_IMAGE_NAME}-${UBUNTU_IMAGE_ARCH} --name=${UBUNTU_IMAGE_NAME} --arch=${UBUNTU_IMAGE_ARCH} --kickstart=/var/lib/cobbler/kickstarts/default.seed --breed=ubuntu --kopts="netcfg/choose_interface=auto"

Here is the offending patch: https://review.openstack.org/#/c/133396/

cobbler import doesn't support --kopts option. only cobbler distro edit does.

The reason it passed CI is that the test node already had ubuntu distro on cobbler and cobbler import didn't get the chance to run. That is another oversight in zuul configuration. compass-dev-demo job didn't have single_use_node parameter, so it didn't got removed even after a build has already run on it.
2014-11-09 22:48:35.175 | ++ for distro in '$(cobbler distro list)'
2014-11-09 22:48:35.175 | ++ '[' Ubuntu-12.04-x86_64 == Ubuntu-12.04-x86_64 ']'
2014-11-09 22:48:35.176 | ++ found_ubuntu_distro=1
2014-11-09 22:48:35.176 | ++ '[' 1 == 0 ']'
2014-11-09 22:48:35.176 | ++ echo 'distro Ubuntu-12.04-x86_64 has already existed'
2014-11-09 22:48:35.176 | distro Ubuntu-12.04-x86_64 has already existed
http://10.145.81.112/logs/96/133396/2/check/compass-dev-demo/97bbb9ffee424d72af910bf7d7127c18/console.html

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on compass-core (dev/experimental)

Change abandoned by Jerry Zhao (<email address hidden>) on branch: dev/experimental
Review: https://review.openstack.org/135257
Reason: Xiaodong's patch should also fix the problem.

Changed in compass:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.