canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.92k stars 871 forks source link

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

Closed ubuntu-server-builder closed 1 year ago

ubuntu-server-builder commented 1 year ago

This bug was originally filed in Launchpad as LP: #1490081

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = 2015-09-06T01:52:27.405021+00:00
date_created = 2015-08-29T02:22:43.614000+00:00
date_fix_committed = None
date_fix_released = None
id = 1490081
importance = undecided
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1490081
milestone = None
owner = raywang
owner_name = Ray Wang
private = False
status = invalid
submitter = raywang
submitter_name = Ray Wang
tags = []
duplicates = []

Launchpad user Ray Wang(raywang) wrote on 2015-08-29T02:22:43.614000+00:00

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.

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

ubuntu-server-builder commented 1 year ago

Launchpad user Dan Watkins(oddbloke) wrote on 2015-09-01T11:56:59.746470+00:00

Hi Ray,

How are you adding the PPA to the instance?

Thanks,

Dan

ubuntu-server-builder commented 1 year ago

Launchpad user Ray Wang(raywang) wrote on 2015-09-02T00:56:08.991117+00:00

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

ubuntu-server-builder commented 1 year ago

Launchpad user Dan Watkins(oddbloke) wrote on 2015-09-02T10:02:39.011967+00:00

Hi Ray,

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

Thanks,

Dan

ubuntu-server-builder commented 1 year ago

Launchpad user Ray Wang(raywang) wrote on 2015-09-04T05:36:59.873443+00:00

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

Thanks Launchpad attachments: cloud-init.cfg

ubuntu-server-builder commented 1 year ago

Launchpad user Dan Watkins(oddbloke) wrote on 2015-09-04T10:09:18.405416+00:00

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

ubuntu-server-builder commented 1 year ago

Launchpad user Ray Wang(raywang) wrote on 2015-09-06T01:38:19.326886+00:00

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.

ubuntu-server-builder commented 1 year ago

Launchpad user Dan Watkins(oddbloke) wrote on 2015-09-06T01:52:48.669787+00:00

Hi Ray,

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

Thanks,

Dan