cassandra-charm fails on bionic with missing packages

Bug #1748197 reported by Tom Haddon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cassandra Juju Charm
Fix Released
High
Stuart Bishop

Bug Description

If you modify the metadata.yaml for the cassandra charm to add support for bionic and then try installing it, it'll fail as follows:

2018-02-08 13:41:58 DEBUG install Hit:6 http://prodstack-zone-1.clouds.archive.ubuntu.com/ubuntu bionic-updates InRelease
2018-02-08 13:41:58 DEBUG install Hit:7 http://prodstack-zone-1.clouds.archive.ubuntu.com/ubuntu bionic-backports InRelease
2018-02-08 13:41:58 DEBUG install Err:8 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic Release
2018-02-08 13:41:58 DEBUG install 404 Not Found [IP: 91.189.95.83 80]
2018-02-08 13:43:59 DEBUG install Err:9 http://www.apache.org/dist/cassandra/debian 30x InRelease
2018-02-08 13:43:59 DEBUG install Could not connect to www.apache.org:80 (140.211.11.105), connection timed out
2018-02-08 13:43:59 DEBUG install Reading package lists...
2018-02-08 13:43:59 DEBUG install E: The repository 'http://ppa.launchpad.net/cassandra-charmers/stable/ubuntu bionic Release' does not have a Release file.
2018-02-08 13:43:59 DEBUG install E: The repository 'http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic Release' does not have a Release file.
2018-02-08 13:43:59 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds
2018-02-08 13:44:09 DEBUG install Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
2018-02-08 13:44:09 DEBUG install Hit:2 http://prodstack-zone-1.clouds.archive.ubuntu.com/ubuntu bionic InRelease
2018-02-08 13:44:09 DEBUG install Hit:3 http://prodstack-zone-1.clouds.archive.ubuntu.com/ubuntu bionic-updates InRelease
2018-02-08 13:44:09 DEBUG install Hit:4 http://prodstack-zone-1.clouds.archive.ubuntu.com/ubuntu bionic-backports InRelease
2018-02-08 13:44:09 DEBUG install Ign:5 http://ppa.launchpad.net/cassandra-charmers/stable/ubuntu bionic InRelease
2018-02-08 13:44:09 DEBUG install Ign:6 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic InRelease
2018-02-08 13:44:09 DEBUG install Err:7 http://ppa.launchpad.net/cassandra-charmers/stable/ubuntu bionic Release
2018-02-08 13:44:09 DEBUG install 404 Not Found [IP: 91.189.95.83 80]
2018-02-08 13:44:10 DEBUG install Err:8 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu bionic Release
2018-02-08 13:44:10 DEBUG install 404 Not Found [IP: 91.189.95.83 80]

Checking with stub on IRC, we need to build bionic packages in the cassandra ppa, and not use the openjdk ppa for bionic (it should have modern enough java already).

Tom Haddon (mthaddon)
Changed in cassandra-charm:
status: New → Confirmed
importance: Undecided → High
Stuart Bishop (stub)
Changed in cassandra-charm:
assignee: nobody → Stuart Bishop (stub)
Revision history for this message
Stuart Bishop (stub) wrote :

Bionic support available with cs:cassandra;channel=edge

Changed in cassandra-charm:
status: Confirmed → Fix Committed
Revision history for this message
Tom Haddon (mthaddon) wrote :

Currently failing on OpenStack with:

2018-02-15 08:52:52 INFO juju-log Setting block device of /var/lib/cassandra/data to IO scheduler noop
2018-02-15 08:52:52 DEBUG juju-log Writing file /sys/block/vda/queue/scheduler root:root 644
2018-02-15 08:52:52 DEBUG leader-elected Traceback (most recent call last):
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/leader-elected", line 20, in <module>
2018-02-15 08:52:52 DEBUG leader-elected hooks.default_hook()
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/hooks.py", line 73, in default_hook
2018-02-15 08:52:52 DEBUG leader-elected sm.manage()
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/charmhelpers/core/services/base.py", line 135, in manage
2018-02-15 08:52:52 DEBUG leader-elected self.reconfigure_services()
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/charmhelpers/core/services/base.py", line 189, in reconfigure_services
2018-02-15 08:52:52 DEBUG leader-elected self.fire_event('data_ready', service_name)
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/charmhelpers/core/services/base.py", line 236, in fire_event
2018-02-15 08:52:52 DEBUG leader-elected callback(service_name)
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/actions.py", line 106, in wrapper
2018-02-15 08:52:52 DEBUG leader-elected return func(*args, **kw)
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/actions.py", line 657, in reset_all_io_schedulers
2018-02-15 08:52:52 DEBUG leader-elected helpers.set_io_scheduler(config['io_scheduler'], d)
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/helpers.py", line 299, in set_io_scheduler
2018-02-15 08:52:52 DEBUG leader-elected raise e
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/helpers.py", line 283, in set_io_scheduler
2018-02-15 08:52:52 DEBUG leader-elected perms=0o644)
2018-02-15 08:52:52 DEBUG leader-elected File "/var/lib/juju/agents/unit-cassandra-0/charm/hooks/charmhelpers/core/host.py", line 509, in write_file
2018-02-15 08:52:52 DEBUG leader-elected target.write(content)
2018-02-15 08:52:52 DEBUG leader-elected OSError: [Errno 22] Invalid argument

Stuart Bishop (stub)
Changed in cassandra-charm:
status: Fix Committed → Fix Released
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.