Azure / Azure/azure-quickstart-templates

301-jenkins-acr-spinnaker-k8s: deploy failuer due to GPG error

Open
#5,509 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

301-jenkins-acr-spinnaker-k8s (https://github.com/Azure/azure-quickstart-templates/tree/master/301-jenkins-acr-spinnaker-k8s)

### Issue Details

"devopsInit" was failed while deployment of Spinnaker CD on k8s on Azure by using the template.

I worked on japaneast region. I can find following error msg in an error log below. It indicated a failure on “apt-get update” due to lack of the pub key.

> W: GPG error: https://apt-mo.trafficmanager.net wheezy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF

Whole of the log (stderr) is below:

[stderr]
key 417A0893: public key "MS Open Tech " imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
W: GPG error: https://apt-mo.trafficmanager.net wheezy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
E: There are problems and -y was used without --force-yes
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12607 100 12607 0 0 59865 0 --:--:-- --:--:-- --:--:-- 60033
gpg: keyring `/tmp/tmpfodizh8b/secring.gpg' created
gpg: keyring `/tmp/tmpfodizh8b/pubring.gpg' created
gpg: requesting key 86F44E2A from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpfodizh8b/trustdb.gpg: trustdb created
gpg: key 86F44E2A: public key "Launchpad OpenJDK builds (all archs)" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
W: GPG error: https://apt-mo.trafficmanager.net wheezy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
dpkg-preconfigure: unable to re-open stdin: No such file or directory
* Setting up X socket directories...
...done.
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
/var/lib/dpkg/info/ca-certificates-java.postinst: line 53: java: command not found
/var/lib/dpkg/info/ca-certificates-java.postinst: line 66: java: command not found
/etc/ca-certificates/update.d/jks-keystore: 82: /etc/ca-certificates/update.d/jks-keystore: java: not found
dpkg: ca-certificates-java: dependency problems, but removing anyway as you requested:
openjdk-8-jre-headless:amd64 depends on ca-certificates-java.

dpkg-preconfigure: unable to re-open stdin: No such file or directory
dpkg-preconfigure: unable to re-open stdin: No such file or directory
stop: Unknown instance:
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
sent invalidate(passwd) request, exiting
sent invalidate(group) request, exiting
rm: cannot remove 'bash': No such file or directory
u001b[2K u001b[0mu001b[0mProblems in u001b[0mu001b[1mdefault.persistentStorageu001b[0m:u001b[0mu001b[0m
u001b[33mu001b[1m- WARNING u001b[0m Your deployment will most likely fail until you configure and enable a persistent store.u001b[0mu001b[0m
./301-jenkins-acr-spinnaker-k8s.sh: line 221: az: command not found
./301-jenkins-acr-spinnaker-k8s.sh: line 222: az: command not found
bash: line 66: az: command not found
Master VM ids:
bash: line 70: az: command not found
Warning: Permanently added 'k8s32owf7ij7olkwmgmt.japaneast.cloudapp.azure.com,23.102.76.233' (ECDSA) to the list of known hosts.
Permission denied (publickey).
bash: line 77: az: command not found
Failed to copy kubeconfig for kubernetes cluster.
Failed while executing script 'spinnaker/copy_kube_config/copy_kube_config.sh'.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with 301-jenkins-acr-spinnaker-k8s.sh and spinnaker/copy_kube_config/copy_kube_config.sh, then review the devopsInit deployment log around apt-get update. Reproduce the template deployment and determine which reported dependency and key errors block completion; done means devopsInit completes and kubeconfig copying succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, kubernetes, shell
Domain
cloud, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.