ntp hook failed: "ntp-peers-relation-joined" due to disk I/O error

Bug #1987675 reported by Bas de Bruijne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NTP Charm
Invalid
Undecided
Unassigned

Bug Description

In testrun https://solutions.qa.canonical.com/testruns/testRun/91488cb4-ade6-4955-a3f0-b3189ba807dd, ntp goes into an error state when setting up lma on AWS:

```
elasticsearch/2* active idle 3 18.212.129.89 9200/tcp Ready
  canonical-livepatch/2 active idle 18.212.129.89 Running kernel 5.15.0-1017.21~20.04.1-aws, patchState: nothing-to-apply (source version/commit dad6199)
  filebeat/2 active idle 18.212.129.89 Filebeat ready.
  ntp/2 error idle 18.212.129.89 123/udp hook failed: "ntp-peers-relation-joined"
  telegraf/2 active idle 18.212.129.89 9103/tcp Monitoring elasticsearch/2
```

In the logs we see an error:
```
unit-ntp-2: 09:12:03 INFO unit.ntp/2.juju-log ntp-peers:2: Invoking reactive handler: hooks/relations/juju-info/requires.py:19:changed:juju-info
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined Traceback (most recent call last):
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined File "/var/lib/juju/agents/unit-ntp-2/charm/hooks/ntp-peers-relation-joined", line 22, in <module>
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined main()
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined File "/var/lib/juju/agents/unit-ntp-2/.venv/lib/python3.8/site-packages/charms/reactive/__init__.py", line 84, in main
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined hookenv._run_atexit()
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined File "/var/lib/juju/agents/unit-ntp-2/.venv/lib/python3.8/site-packages/charmhelpers/core/hookenv.py", line 1357, in _run_atexit
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined callback(*args, **kwargs)
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined File "/var/lib/juju/agents/unit-ntp-2/charm/lib/charms/layer/basic.py", line 513, in clear_config_states
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined unitdata.kv().flush()
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined File "/var/lib/juju/agents/unit-ntp-2/.venv/lib/python3.8/site-packages/charmhelpers/core/unitdata.py", line 377, in flush
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined self.conn.commit()
unit-ntp-2: 09:12:03 WARNING unit.ntp/2.ntp-peers-relation-joined sqlite3.OperationalError: disk I/O error
```

Link to crashdumps:
https://oil-jenkins.canonical.com/artifacts/91488cb4-ade6-4955-a3f0-b3189ba807dd/index.html

tags: added: cdo-qa foundations-engine
Revision history for this message
Bas de Bruijne (basdbruijne) wrote :

Marking as invalid due to inactivity

Changed in ntp-charm:
status: New → Invalid
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.