error in ca_certs module
Bug #1768468 reported by
Gianluca Salvo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Invalid
|
Undecided
|
Unassigned | ||
ca-certificates (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
I'm using cloud-init in order to customize Nutanix AHV images.
I'm using the ca_certs module to upload our private ca chain (root and intermediate) but in the log I found a log that states that
-------
Cloud-init v. 18.2 running 'init-local' at Wed, 02 May 2018 08:54:58 +0000. Up 6.25 seconds.
Updating certificates in /etc/ssl/certs...
rehash: skipping cloud-init-
1 added, 0 removed; done.
Running hooks in /etc/ca-
done.
-------
And the certificates are not trusted.
Ubuntu version is 18.04.
To post a comment you must log in.
Hi, I don't believe this is a cloud-init bug. Cloud-init wrote the two certificate files requested.
2018-05-02 08:55:00,913 - stages.py[DEBUG]: Running module ca-certs (<module cloudinit. config. cc_ca_certs' from '/usr/lib/ python3/ dist-packages/ cloudinit/ config/ cc_ca_certs. py'>) with frequency once-per-instance config- ca-certs: running config-ca-certs with frequency once-per-instance cloud/instances /44574988- 144d-485a- 9386-2ec4f4f545 c4/sem/ config_ ca_certs - wb: [644] 24 bytes cloud/instances /44574988- 144d-485a- 9386-2ec4f4f545 c4/sem/ config_ ca_certs' >) py[DEBUG] : Adding 2 certificates ca-certificates /cloud- init-ca- certs.crt - wb: [644] 4545 bytes certificates. conf (quiet=False) certificates. conf certificates. conf - wb: [644] 5922 bytes py[DEBUG] : Updating certificates ca-certificates '] with allowed return codes [0] (shell=False, capture=False) config- ca-certs: SUCCESS: config-ca-certs ran successfully
2018-05-02 08:55:00,914 - handlers.py[DEBUG]: start: init-network/
2018-05-02 08:55:00,914 - util.py[DEBUG]: Writing to /var/lib/
2018-05-02 08:55:00,914 - helpers.py[DEBUG]: Running config-ca-certs using lock (<FileLock using file '/var/lib/
2018-05-02 08:55:00,914 - cc_ca_certs.
2018-05-02 08:55:00,916 - util.py[DEBUG]: Writing to /usr/share/
2018-05-02 08:55:00,917 - util.py[DEBUG]: Reading from /etc/ca-
2018-05-02 08:55:00,917 - util.py[DEBUG]: Read 5898 bytes from /etc/ca-
2018-05-02 08:55:00,917 - util.py[DEBUG]: Writing to /etc/ca-
2018-05-02 08:55:00,918 - cc_ca_certs.
2018-05-02 08:55:00,918 - util.py[DEBUG]: Running command ['update-
2018-05-02 08:55:01,845 - handlers.py[DEBUG]: finish: init-network/
The error you show mentions a 'cloud- init-ca- certs.pem' It may be related the ca-certificates package? I'm adding the package as a task.