bootcmd to write /etc/apt/apt.conf.d/95-juju-proxy-settings is not executed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Dmitrii Shcherbakov | ||
2.5 |
Fix Released
|
High
|
John A Meinel | ||
OpenStack Dashboard Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Installing openstack-dashboard (cs:openstack-
2018-12-09 19:28:05 DEBUG install dpkg-query: package 'python-pip' is not installed and no information is available
2018-12-09 19:28:05 DEBUG install Use dpkg --info (= dpkg-deb --info) to examine archive files,
2018-12-09 19:28:05 DEBUG install and dpkg --contents (= dpkg-deb --contents) to list their contents.
2018-12-09 19:28:06 DEBUG install Reading package lists...
2018-12-09 19:28:06 DEBUG install Building dependency tree...
2018-12-09 19:28:06 DEBUG install Reading state information...
2018-12-09 19:28:06 DEBUG install E: Unable to locate package python-pip
2018-12-09 19:28:06 ERROR juju.worker.
ssh'ing into the container and running sudo apt update resolves the issue so looks like something very similar to https:/
Looking at the code, the main install() proc runs apt_update(
declare -a DEPS=('apt' 'netaddr' 'netifaces' 'pip' 'yaml' 'dnspython')
check_and_install() {
pkg="${1}-${2}"
if ! dpkg -s ${pkg} 2>&1 > /dev/null; then
apt-get -y install ${pkg}
fi
}
...
exec ./hooks/
install.real is where the apt update takes place, however, if pip isn't installed, the apt-get happens before the apt update leading to this issue.
Suggest adding an "apt update" before apt-get in /hooks/install
Changed in charm-openstack-dashboard: | |
status: | Confirmed → Incomplete |
Changed in juju: | |
status: | New → Fix Committed |
assignee: | nobody → Dmitrii Shcherbakov (dmitriis) |
Changed in juju: | |
milestone: | none → 2.6-beta1 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Post discussion with James P - this failed again this morning. Here is the the model config:
$ juju model-config retry-hooks default true image-metadata- url default "" image-stream default released inherit- properties default "" networking- method model fan network- management default false os-refresh- update default true 0.0/20= 252.0.0. 0/8 machine- addresses default false 1,localhost, ::1 WARNING; unit=DEBUG results- age default 336h results- size default 5G history- age default 336h history- size default 5G reconfigure- delay default 17 1,localhost, ::1 harvest- mode default destroyed assertions default "" verification default true default- block-source model gce vendor- metrics default true status- hook-interval default 5m
Attribute From Value
agent-metadata-url default ""
agent-stream default released
agent-version model 2.4.4
apt-ftp-proxy default ""
apt-http-proxy default ""
apt-https-proxy default ""
apt-mirror default ""
apt-no-proxy default ""
automatically-
backup-dir default ""
cloudinit-userdata default ""
container-
container-
container-
container-
default-series default bionic
development default false
disable-
egress-subnets default ""
enable-
enable-os-upgrade default true
fan-config model 10.142.
firewall-mode default instance
ftp-proxy default ""
http-proxy default ""
https-proxy default ""
ignore-
image-metadata-url default ""
image-stream default released
juju-ftp-proxy default ""
juju-http-proxy default ""
juju-https-proxy default ""
juju-no-proxy default 127.0.0.
logforward-enabled default false
logging-config model <root>=
max-action-
max-action-
max-status-
max-status-
net-bond-
no-proxy default 127.0.0.
provisioner-
proxy-ssh default false
resource-tags model {}
snap-http-proxy default ""
snap-https-proxy default ""
snap-store-
snap-store-proxy default ""
ssl-hostname-
storage-
test-mode default false
transmit-
update-
Here is the output of the machine- 0-lxd-14. log:
2018-12-10 12:04:50 INFO juju.cmd supercommand.go:56 running jujud [2.4.4 gc go1.11] "/var/lib/ juju/tools/ machine- 0-lxd-14/ jujud", "machine", "--data-dir", "/var/lib/juju", "--machine-id", "0/lxd/14", "--debug"} upgradesteps worker.go:74 upgrade steps for 2.4.4 have already been run. dependency en...
2018-12-10 12:04:50 DEBUG juju.cmd supercommand.go:57 args: []string{
2018-12-10 12:04:50 DEBUG juju.utils gomaxprocs.go:24 setting GOMAXPROCS to 8
2018-12-10 12:04:50 DEBUG juju.agent agent.go:542 read agent config, format "2.0"
2018-12-10 12:04:50 INFO juju.worker.
2018-12-10 12:04:50 DEBUG juju.worker.