Juju requires outbound network on first run, packaging has recoverable errors

Bug #1625658 reported by Curtis Hovey
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned
juju-ci-tools
Won't Fix
Wishlist
Unassigned

Bug Description

As seen at
    http://reports.vapour.ws/releases/issue/57e1469d749a56354cda100a

HOME=debian/home /workspace/juju-core-2.0-rc1/src/github.com/juju/juju/scripts/generate-docs.py man -o juju.1
Since Juju 2 is being run for the first time, downloading latest cloud information.
Fetching latest public cloud list...
error: not found
error: not found

^ A successful creation of the man page will fetch the new clouds and show what it found. This failed because of a Juju/network hiccup. Ubuntu does not permit outbound network to build a package. Juju could have recognised that it was in a non-interactive session or it needs an option to STFU and JFDI.

Curtis Hovey (sinzui)
Changed in juju:
assignee: nobody → Alexis Bruemmer (alexis-bruemmer)
Curtis Hovey (sinzui)
Changed in juju:
importance: Critical → Medium
assignee: Alexis Bruemmer (alexis-bruemmer) → nobody
milestone: 2.0-rc1 → none
importance: Medium → High
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

We should include a test to ensure a launchpad build will work (offline, etc)

Changed in juju-ci-tools:
status: New → Triaged
Revision history for this message
Curtis Hovey (sinzui) wrote :

This is not blocker for releases. We can see that Juju *is* trying to go outbound, it fails, we still get a man page. Juju should not be trying to do this, or the package rules need a change to to ensure juju stays offline during the build

HOME=debian/home /«PKGBUILDDIR»/src/github.com/juju/juju/scripts/generate-docs.py man -o juju.1
Since Juju 2 is being run for the first time, downloading latest cloud information.
Fetching latest public cloud list...
error: Get https://streams.canonical.com/juju/public-clouds.syaml: dial tcp 91.189.88.141:443: getsockopt: connection timed out
...
dh_link -pjuju-2.0 usr/lib/juju-2.0/bin/juju usr/bin/juju
dh_link -pjuju-2.0 usr/lib/juju-2.0/bin/jujud usr/bin/jujud
dh_link -pjuju-2.0 usr/lib/juju-2.0/bin/juju-metadata usr/bin/juju-metadata
dh_link -pjuju-2.0 usr/lib/juju-2.0/bin/juju-upgrade-mongo usr/bin/juju-upgrade-mongo
dh_link -pjuju-2.0 usr/lib/juju-2.0/man/man1/juju.1.gz usr/share/man/man1/juju.1.gz
dh_link -pjuju-2.0 usr/lib/juju-2.0/man/man1/juju.1.gz usr/share/man/man1/juju-2.0.1.gz

Changed in juju:
importance: High → Medium
summary: - Juju requires outbound network on first run, breaking package building
+ Juju requires outbound network on first run, packaging has recoverable
+ errors
Revision history for this message
Torsten Baumann (torbaumann) wrote :

workaround in place

Changed in juju-ci-tools:
importance: Undecided → Wishlist
status: Triaged → Won't Fix
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.