Activity log for bug #1858846

Date Who What changed Old value New value Message
2020-01-08 19:36:11 Hans van den Bogert bug added bug
2020-01-08 19:36:46 Hans van den Bogert description I looked into this after seeing that the calico charm does not successfully deploy and gets stuck in state "retry calico configuration" Further investigation showed: ``` unit-calico-23: 16:47:40 INFO unit.calico/23.juju-log etcd:36: Traceback (most recent call last): File "/var/lib/juju/agents/unit-calico-23/charm/reactive/calico.py", line 465, in configure_node node = calicoctl_get('node', node_name) File "/var/lib/juju/agents/unit-calico-23/charm/reactive/calico.py", line 633, in calicoctl_get output = calicoctl(*args) File "/var/lib/juju/agents/unit-calico-23/charm/reactive/calico.py", line 582, in calicoctl subprocess.CalledProcessError: Command '['/opt/calicoctl/calicoctl', 'get', '-o', 'yaml', '--export', 'node', 'NLDW1-6-26-1']' returned non-zero exit status 1 ``` Manually adding the shows the supposed faulty scenario; Adding a node on calico level fails if it has capitals. ``` ./calicoctl create -f me.yaml Failed to create 'Node' resource: [error with field Metadata.Name = 'NLDW1-6-26-1' (name must consist of lower case alphanumeric characters, '-' or '.' (regex: [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*))] ``` Changing the node's name in MAAS to lower case solved this for me. I looked into this after seeing that the calico charm does not successfully deploy and gets stuck in state "retry calico configuration" Further investigation showed: ``` unit-calico-23: 16:47:40 INFO unit.calico/23.juju-log etcd:36: Traceback (most recent call last):   File "/var/lib/juju/agents/unit-calico-23/charm/reactive/calico.py", line 465, in configure_node     node = calicoctl_get('node', node_name)   File "/var/lib/juju/agents/unit-calico-23/charm/reactive/calico.py", line 633, in calicoctl_get     output = calicoctl(*args)   File "/var/lib/juju/agents/unit-calico-23/charm/reactive/calico.py", line 582, in calicoctl subprocess.CalledProcessError: Command '['/opt/calicoctl/calicoctl', 'get', '-o', 'yaml', '--export', 'node', 'NLDW1-6-26-1']' returned non-zero exit status 1 ``` Manually adding the node shows the supposed faulty scenario; Adding a node on calico level fails if it has capitals. ``` ./calicoctl create -f me.yaml Failed to create 'Node' resource: [error with field Metadata.Name = 'NLDW1-6-26-1' (name must consist of lower case alphanumeric characters, '-' or '.' (regex: [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*))] ``` Changing the node's name in MAAS to lower case solved this for me.
2020-01-09 15:09:42 George Kraft charm-calico: status New Confirmed
2020-06-08 19:04:42 George Kraft charm-calico: importance Undecided Medium
2020-06-08 19:04:44 George Kraft charm-calico: status Confirmed Triaged
2023-12-15 16:39:08 Jeffrey Chang tags cdo-qa
2024-05-16 06:15:28 Michael Fischer bug added subscriber Michael Fischer