Activity log for bug #1087145

Date Who What changed Old value New value Message
2012-12-06 07:01:59 julian wang bug added bug
2012-12-06 07:02:50 julian wang bug added subscriber Ray Wang
2012-12-06 07:06:22 julian wang attachment added Fix attached https://bugs.launchpad.net/maas/+bug/1087145/+attachment/3452820/+files/mirror-dstdomain.acl
2012-12-06 10:40:47 Julian Edwards affects maas squid-deb-proxy
2012-12-06 10:41:14 Julian Edwards bug task added squid-deb-proxy (Ubuntu)
2012-12-06 12:17:09 Ubuntu Foundations Team Bug Bot tags folsom folsom patch
2012-12-06 12:17:16 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2012-12-27 23:27:48 Mark Russell bug added subscriber Mark Russell
2013-01-04 14:22:12 Robie Basak bug added subscriber Robie Basak
2013-01-07 09:57:22 Robie Basak squid-deb-proxy (Ubuntu): status New Fix Released
2013-01-07 10:50:01 Robie Basak description To setup OpenStack Folsom on Ubuntu 12.04 LTS by MAAS+JuJu, it needs access ubuntu cloud archive: deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/folsom main But by default, it's not ok. Error logs from juju shows apt-get update failed by 403 forbidden. ======================================LOG========================================================= 2012-12-05 14:34:28,960 unit:keystone/1: hook.executor DEBUG: started 2012-12-05 14:34:29,003 unit:keystone/1: statemachine DEBUG: unitworkflowstate: transition install (None -> installed) {} 2012-12-05 14:34:29,003 unit:keystone/1: statemachine DEBUG: unitworkflowstate: execute action do_install 2012-12-05 14:34:29,050 unit:keystone/1: hook.output DEBUG: Cached relation hook contexts: [] 2012-12-05 14:34:29,051 unit:keystone/1: hook.executor DEBUG: Running hook: /var/lib/juju/units/keystone-1/charm/hooks/install 2012-12-05 14:34:29,972 unit:keystone/1: unit.hook.api DEBUG: Get unit setting: 'private-address' 2012-12-05 14:34:30,443 unit:keystone/1: unit.hook.api DEBUG: Get unit setting: 'private-address' 2012-12-05 14:34:30,523 unit:keystone/1: hook.output INFO: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.YQ7MyOjrEG --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 5EDB1B62EC4926EA 2012-12-05 14:34:30,527 unit:keystone/1: hook.output ERROR: gpg: 2012-12-05 14:34:30,528 unit:keystone/1: hook.output ERROR: requesting key EC4926EA from hkp server keyserver.ubuntu.com 2012-12-05 14:34:34,702 unit:keystone/1: hook.output ERROR: gpg: 2012-12-05 14:34:34,703 unit:keystone/1: hook.output ERROR: key EC4926EA: "Canonical Cloud Archive Signing Key <ftpmaster@canonical.com>" not changed 2012-12-05 14:34:34,704 unit:keystone/1: hook.output ERROR: gpg: 2012-12-05 14:34:34,704 unit:keystone/1: hook.output ERROR: Total number processed: 1 2012-12-05 14:34:34,705 unit:keystone/1: hook.output ERROR: gpg: 2012-12-05 14:34:34,705 unit:keystone/1: hook.output ERROR: unchanged: 1 2012-12-05 14:34:51,882 unit:keystone/1: unit.hook.api INFO: FATAL ERROR: ERROR: command apt-get update return non-zero. 2012-12-05 14:34:51,920 unit:keystone/1: hook.output DEBUG: hook install exited, exit code Traceback (most recent call last): Failure: juju.errors.CharmInvocationError: Error processing '/var/lib/juju/units/keystone-1/charm/hooks/install': exit code 1. . 2012-12-05 14:34:51,921 unit:keystone/1: hook.executor DEBUG: Hook error: /var/lib/juju/units/keystone-1/charm/hooks/install Error processing '/var/lib/juju/units/keystone-1/charm/hooks/install': exit code 1. 2012-12-05 14:34:51,922 unit:keystone/1: statemachine DEBUG: unitworkflowstate: executing error transition error_install, Error processing '/var/lib/juju/units/keystone-1/charm/hooks/install': exit code 1. 2012-12-05 14:34:51,954 unit:keystone/1: statemachine DEBUG: unitworkflowstate: transition error_install (None -> install_error) {} 2012-12-05 14:34:52,001 unit:keystone/1: statemachine DEBUG: unitworkflowstate: transition complete error_install (state install_error) {} 2012-12-05 14:34:52,015 unit:keystone/1: juju.agents.unit DEBUG: Configuration Changed 2012-12-05 14:34:52,015 unit:keystone/1: juju.agents.unit DEBUG: Configuration updated on service in a non-started state 2012-12-05 14:34:52,032 unit:keystone/1: juju.agents.unit INFO: No upgrade flag set. W: Failed to fetch http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/precise-updates/folsom/main/binary-amd64/Packages 403 Forbidden W: Failed to fetch http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/precise-updates/folsom/main/binary-i386/Packages 403 Forbidden E: Some index files failed to download. They have been ignored, or old ones used instead. =================================================================================================== The solution is: Change /etc/squid-deb-proxy/mirror_dstdomain.acl, line 14: --archive.canonical.com ++.archive.canonical.com Restart squid-deb-proxy service. [Impact] Users cannot enable the Ubuntu Cloud Archive using squid-deb-proxy without changing its configuration by hand. [Test Case] $ export http_proxy=http://localhost:8000 $ wget -O/dev/null http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/precise-updates/folsom/Release This command should succeed, but if the problem is present then it fails with 403 Forbidden. [Development Fix] Fixed in upstream trunk and in Raring 0.6.7. [Stable Fix] Merge proposal attached. This just tweaks mirror-dstdomain.acl the same way as in the development fix. [Regression Potential] Only access to archives in archive.canonical.com will be affected. I have verified that ".archive.canonical.com" also matches "archive.canonical.com" by getting a 404 (and not a 403) if I hit it with this change applied. [Original Description] To setup OpenStack Folsom on Ubuntu 12.04 LTS by MAAS+JuJu, it needs access ubuntu cloud archive: deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/folsom main But by default, it's not ok. Error logs from juju shows apt-get update failed by 403 forbidden. ======================================LOG========================================================= 2012-12-05 14:34:28,960 unit:keystone/1: hook.executor DEBUG: started 2012-12-05 14:34:29,003 unit:keystone/1: statemachine DEBUG: unitworkflowstate: transition install (None -> installed) {} 2012-12-05 14:34:29,003 unit:keystone/1: statemachine DEBUG: unitworkflowstate: execute action do_install 2012-12-05 14:34:29,050 unit:keystone/1: hook.output DEBUG: Cached relation hook contexts: [] 2012-12-05 14:34:29,051 unit:keystone/1: hook.executor DEBUG: Running hook: /var/lib/juju/units/keystone-1/charm/hooks/install 2012-12-05 14:34:29,972 unit:keystone/1: unit.hook.api DEBUG: Get unit setting: 'private-address' 2012-12-05 14:34:30,443 unit:keystone/1: unit.hook.api DEBUG: Get unit setting: 'private-address' 2012-12-05 14:34:30,523 unit:keystone/1: hook.output INFO: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.YQ7MyOjrEG --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 5EDB1B62EC4926EA 2012-12-05 14:34:30,527 unit:keystone/1: hook.output ERROR: gpg: 2012-12-05 14:34:30,528 unit:keystone/1: hook.output ERROR: requesting key EC4926EA from hkp server keyserver.ubuntu.com 2012-12-05 14:34:34,702 unit:keystone/1: hook.output ERROR: gpg: 2012-12-05 14:34:34,703 unit:keystone/1: hook.output ERROR: key EC4926EA: "Canonical Cloud Archive Signing Key <ftpmaster@canonical.com>" not changed 2012-12-05 14:34:34,704 unit:keystone/1: hook.output ERROR: gpg: 2012-12-05 14:34:34,704 unit:keystone/1: hook.output ERROR: Total number processed: 1 2012-12-05 14:34:34,705 unit:keystone/1: hook.output ERROR: gpg: 2012-12-05 14:34:34,705 unit:keystone/1: hook.output ERROR: unchanged: 1 2012-12-05 14:34:51,882 unit:keystone/1: unit.hook.api INFO: FATAL ERROR: ERROR: command apt-get update return non-zero. 2012-12-05 14:34:51,920 unit:keystone/1: hook.output DEBUG: hook install exited, exit code Traceback (most recent call last): Failure: juju.errors.CharmInvocationError: Error processing '/var/lib/juju/units/keystone-1/charm/hooks/install': exit code 1. . 2012-12-05 14:34:51,921 unit:keystone/1: hook.executor DEBUG: Hook error: /var/lib/juju/units/keystone-1/charm/hooks/install Error processing '/var/lib/juju/units/keystone-1/charm/hooks/install': exit code 1. 2012-12-05 14:34:51,922 unit:keystone/1: statemachine DEBUG: unitworkflowstate: executing error transition error_install, Error processing '/var/lib/juju/units/keystone-1/charm/hooks/install': exit code 1. 2012-12-05 14:34:51,954 unit:keystone/1: statemachine DEBUG: unitworkflowstate: transition error_install (None -> install_error) {} 2012-12-05 14:34:52,001 unit:keystone/1: statemachine DEBUG: unitworkflowstate: transition complete error_install (state install_error) {} 2012-12-05 14:34:52,015 unit:keystone/1: juju.agents.unit DEBUG: Configuration Changed 2012-12-05 14:34:52,015 unit:keystone/1: juju.agents.unit DEBUG: Configuration updated on service in a non-started state 2012-12-05 14:34:52,032 unit:keystone/1: juju.agents.unit INFO: No upgrade flag set. W: Failed to fetch http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/precise-updates/folsom/main/binary-amd64/Packages 403 Forbidden W: Failed to fetch http://ubuntu-cloud.archive.canonical.com/ubuntu/dists/precise-updates/folsom/main/binary-i386/Packages 403 Forbidden E: Some index files failed to download. They have been ignored, or old ones used instead. =================================================================================================== The solution is: Change /etc/squid-deb-proxy/mirror_dstdomain.acl, line 14: --archive.canonical.com ++.archive.canonical.com Restart squid-deb-proxy service.
2013-01-07 10:51:18 Robie Basak branch linked lp:~racb/ubuntu/precise/squid-deb-proxy/cloud-archive
2013-02-05 13:08:05 James Page nominated for series Ubuntu Precise
2013-02-05 13:08:05 James Page bug task added squid-deb-proxy (Ubuntu Precise)
2013-02-05 13:08:05 James Page nominated for series Ubuntu Quantal
2013-02-05 13:08:05 James Page bug task added squid-deb-proxy (Ubuntu Quantal)
2013-02-05 13:11:44 James Page bug added subscriber Ubuntu Stable Release Updates Team
2013-02-05 13:11:47 Daniel Holbach squid-deb-proxy (Ubuntu Precise): assignee Andres Rodriguez (andreserl)
2013-02-05 13:11:52 James Page bug added subscriber James Page
2013-02-05 13:11:53 Daniel Holbach squid-deb-proxy (Ubuntu Quantal): assignee Andres Rodriguez (andreserl)
2013-02-06 06:34:58 Nobuto Murata bug added subscriber Nobuto MURATA
2013-02-08 20:28:10 Launchpad Janitor squid-deb-proxy (Ubuntu Precise): status New Confirmed
2013-02-08 20:28:10 Launchpad Janitor squid-deb-proxy (Ubuntu Quantal): status New Confirmed
2013-02-14 14:56:31 Nobuto Murata branch linked lp:~nobuto/squid-deb-proxy/allow-ubuntu-cloud-archive
2013-02-14 15:00:35 Nobuto Murata squid-deb-proxy: status New Fix Released
2013-02-27 02:00:37 Colin Watson squid-deb-proxy (Ubuntu Precise): status Confirmed Fix Committed
2013-02-27 02:00:43 Colin Watson bug added subscriber SRU Verification
2013-02-27 02:00:50 Colin Watson tags folsom patch folsom patch verification-needed
2013-02-27 02:13:54 Launchpad Janitor branch linked lp:ubuntu/precise-proposed/squid-deb-proxy
2013-05-24 21:00:42 Javier López tags folsom patch verification-needed folsom patch verification-done
2013-05-28 21:54:04 Brian Murray removed subscriber Ubuntu Stable Release Updates Team
2013-05-28 21:54:24 Launchpad Janitor squid-deb-proxy (Ubuntu Precise): status Fix Committed Fix Released
2013-10-11 16:24:19 Andres Rodriguez squid-deb-proxy (Ubuntu Quantal): status Confirmed Fix Released