install maas from lp:maas/stable will fail due to the lack of --force-yes

Bug #1490081 reported by Lei Wang
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init
Invalid
Undecided
Unassigned

Bug Description

maas ppa changed from lp:maas-maintainers to lp:maas

When changing this cloud-init.cfg, and install maas from cloud-init. I got this following errors.

WARNING: The following packages cannot be authenticated!
  python-maas-client maas-cli maas-common maas-dhcp
  python-maas-provisioningserver maas-cluster-controller maas-proxy
  python-psycopg2 python-django-maas maas-region-controller-min
  maas-region-controller maas maas-dns
E: There are problems and -y was used without --force-yes
2015-08-26 04:02:53,255 - util.py[WARNING]: Failed to install packages: ['maas', 'maas-dhcp', 'maas-dns', 'libvirt-bin', 'linux-image-extra-virtual', 'jq', 'juju-core', 'juju-deployer', 'python-bson', 'python-httplib2', 'python-jinja2', 'python-maas-client', 'python-yaml']
2015-08-26 04:02:53,579 - cc_package_update_upgrade_install.py[WARNING]: 1 failed with exceptions, re-raising the last one
2015-08-26 04:02:53,585 - util.py[WARNING]: Running package-update-upgrade-install (<module 'cloudinit.config.cc_package_update_upgrade_install' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_package_update_upgrade_install.pyc'>) failed
Cloud-init v. 0.7.5 running 'modules:final' at Wed, 26 Aug 2015 04:02:53 +0000. Up 33.00 seconds.
+ sudo maas-region-admin createadmin --username=ubuntu --password=huawei@123 --email=ubuntu@localhost
sudo: maas-region-admin: command not found
2015-08-26 04:02:53,910 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/config-maas.sh [1]
2015-08-26 04:02:53,912 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2015-08-26 04:02:53,912 - util.py[WARNING]: Running scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
MAAS controller is now configured.

It might be useful to add additional options '--force-yes' to make sure maas packages can be installed

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hi Ray,

How are you adding the PPA to the instance?

Thanks,

Dan

Revision history for this message
Lei Wang (raywang) wrote :

Hi Dan,

I change cloud-init will add maas PPA, since I put the ppa in cloud-init.cfg, I maybe wrong but I guess cloud-init use add-apt-repository to add this PPA

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hi Ray,

Could you paste the cloud-init.cfg you are using somewhere?

Thanks,

Dan

Revision history for this message
Lei Wang (raywang) wrote :

Hi Dan, here is the cloud-init.cfg that I use

Thanks

Revision history for this message
Dan Watkins (oddbloke) wrote :

I just booted up a trusty instance in a cloud using this configuration, and the install worked fine. Have you been able to reproduce?

Revision history for this message
Lei Wang (raywang) wrote :

I can not test it at the moment, please feel free to close it, and I will re-open it if I have a chance to test it again.

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hi Ray,

I've closed this out, but please do reopen it if you can reproduce.

Thanks,

Dan

Changed in cloud-init:
status: New → Invalid
Revision history for this message
James Falcon (falcojr) wrote :
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.