agilestacks / components

Stack components in Hub format
Apache License 2.0
8 stars 2 forks source link

Failed deployment of Jenkins component on imported cluster #101

Closed ghost closed 6 years ago

ghost commented 6 years ago

Can not deploy Jenkins on imported cluster (K8S or EKS)

 2018/07/10 13:57:43 deploy ***jenkins-iam-role*** (3/13)
2018/07/10 13:57:43 Parameters flattened (jenkins-iam-role):
2018/07/10 13:57:43         :dns.domain|jenkins-iam-role => `` (env:TF_VAR_domain_name)
2018/07/10 13:57:43         :cloud.role.worker|jenkins-iam-role => ``
2018/07/10 13:57:43     user:cloud.region|jenkins-iam-role => *ask* (env:AWS_DEFAULT_REGION)
2018/07/10 13:57:43         :component.jenkins.name|jenkins-iam-role => `jenkins` (env:COMPONENT_NAME)
2018/07/10 13:57:43         :cloud.role.worker|jenkins-iam-role => `` (env:TF_VAR_worker_role)
2018/07/10 13:57:43 Parameters expanded:
2018/07/10 13:57:43     component.name => `jenkins-iam-role`
2018/07/10 13:57:43     dns.domain => `iglyeks.igly1646690e87c.kubernetes.delivery` (env:TF_VAR_domain_name)
2018/07/10 13:57:43     cloud.role.worker => `(unknown)`
2018/07/10 13:57:43     cloud.region => `eu-central-1` (env:AWS_DEFAULT_REGION)
2018/07/10 13:57:43     component.jenkins.name => `jenkins` (env:COMPONENT_NAME)
2018/07/10 13:57:43     cloud.role.worker => `(unknown)` (env:TF_VAR_worker_role)
2018/07/10 13:57:43 Currently known stack parameters:
2018/07/10 13:57:43     cloud.availabilityZone => `eu-central-1a`
2018/07/10 13:57:43     cloud.awsAccountNumber => `957622438981`
2018/07/10 13:57:43     cloud.bucket => `files.iglyeks.igly1646690e87c.kubernetes.delivery`
2018/07/10 13:57:43     cloud.lockTable => `agilestacks.igly1646690e87c.kubernetes.delivery`
2018/07/10 13:57:43     cloud.lockTableArn => `arn:aws:dynamodb:us-east-2:973998981304:table/agilestacks.igly1646690e87c.kubernetes.delivery`
2018/07/10 13:57:43     cloud.provider => `aws`
2018/07/10 13:57:43     cloud.region => `eu-central-1`
2018/07/10 13:57:43     cloud.region|jenkins => `eu-central-1`
2018/07/10 13:57:43     cloud.region|jenkins-iam-role => `eu-central-1` (env:AWS_DEFAULT_REGION)
2018/07/10 13:57:43     cloud.s3BucketName => `agilestacks.igly1646690e87c.kubernetes.delivery`
2018/07/10 13:57:43     cloud.s3BucketRegion => `eu-central-1`
2018/07/10 13:57:43     cloud.sshKey => `agilestacks`
2018/07/10 13:57:43     component.efk.logRetention => `7`
2018/07/10 13:57:43     component.efk.memory => `2`
2018/07/10 13:57:43     component.efk.nodes => `3`
2018/07/10 13:57:43     component.efk.storage => `100`
2018/07/10 13:57:43     component.ingress.fqdn => `app.iglyeks.igly1646690e87c.kubernetes.delivery`
2018/07/10 13:57:43     component.ingress.protocol => `http`
2018/07/10 13:57:43     component.ingress.ssl.enabled => `false`
2018/07/10 13:57:43     component.ingress.ssl.protocol => `http`
2018/07/10 13:57:43     component.ingress.ssoFqdn => `apps.iglyeks.igly1646690e87c.kubernetes.delivery`
2018/07/10 13:57:43     component.ingress.ssoUrlPrefix => `apps`
2018/07/10 13:57:43     component.ingress.urlPrefix => `app`
2018/07/10 13:57:43     component.jenkins.instances => `jenkins`
2018/07/10 13:57:43     component.jenkins.namespaces => `applications`
2018/07/10 13:57:43     component.kubeflow.githubToken => ``
2018/07/10 13:57:43     component.mongodb.database|mongodb => `mongodb`
2018/07/10 13:57:43     component.mongodb.password|mongodb => `mongodb`
2018/07/10 13:57:43     component.mongodb.storageType|mongodb => `ebs`
2018/07/10 13:57:43     component.mongodb.user|mongodb => `mongodb`
2018/07/10 13:57:43     component.mongodb.volumeSize|mongodb => `8Gi`
2018/07/10 13:57:43     component.mongodb.volumeType|mongodb => `gp2`
2018/07/10 13:57:43     component.postgresql.database|postgresql => `postgres`
2018/07/10 13:57:43     component.postgresql.password|postgresql => `postgres`
2018/07/10 13:57:43     component.postgresql.storageType|postgresql => `ebs`
2018/07/10 13:57:43     component.postgresql.user|postgresql => `postgres`
2018/07/10 13:57:43     component.postgresql.volumeSize|postgresql => `8Gi`
2018/07/10 13:57:43     component.postgresql.volumeType|postgresql => `gp2`
2018/07/10 13:57:43     component.redis.ha.enabled => `false`
2018/07/10 13:57:43     component.redis.ha.master => `1`
2018/07/10 13:57:43     component.redis.ha.sentinel => `3`
2018/07/10 13:57:43     component.redis.ha.slave => `1`
2018/07/10 13:57:43     component.redis.usePassword => `false`
2018/07/10 13:57:43     component.redis.volume.size => `8`
2018/07/10 13:57:43     component.sysdig.agentTags => ``
2018/07/10 13:57:43     dns.baseDomain => `igly1646690e87c.kubernetes.delivery`
2018/07/10 13:57:43     dns.baseDomainZoneId => `Z185B4179OISR7`
2018/07/10 13:57:43     dns.domain => `iglyeks.igly1646690e87c.kubernetes.delivery`
2018/07/10 13:57:43     dns.name => `all-components`
2018/07/10 13:57:43     dns.parentDomainZoneId => `ZXCHKWDIQWHQM`
2018/07/10 13:57:43     hub.deploymentId => `5e8ded1f-95b7-4e80-b31c-a53a8bb84473` (env:DEPLOYMENT_ID)
2018/07/10 13:57:43     hub.stackName => `all-components` (env:STACK_NAME)
2018/07/10 13:57:43     kubernetes.api.caCert => `-----BEGIN CERTIFICATE-----\nMIICyDCCAbCgAwIBAgIBADANBgkqhkiG9w0BAQsFADAVMRMwEQYDVQQDEwprdWJl\ncm5ld...`
2018/07/10 13:57:43     kubernetes.api.clientCert => ``
2018/07/10 13:57:43     kubernetes.api.clientKey => ``
2018/07/10 13:57:43     kubernetes.api.endpoint => `7E93F66E516B7F1E7B0D5A1F2E4BDA90.sk1.us-east-1.eks.amazonaws.com`
2018/07/10 13:57:43     kubernetes.eks.cluster => `iglyeks`
2018/07/10 13:57:43     kubernetes.flavor => `eks`
2018/07/10 13:57:43 Currently known outputs:
2018/07/10 13:57:43     postgresql-pgweb:component.pgweb.url => `http://postgresql-pgweb.apps.iglyeks.igly1646690e87c.kubernetes.delivery`
2018/07/10 13:57:43     postgresql-pgweb:hub.components.postgresql-pgweb.git.clean => `not calculated`
2018/07/10 13:57:43     postgresql-pgweb:hub.components.postgresql-pgweb.git.ref => `refs/heads/master 8baf331`
2018/07/10 13:57:43     postgresql:component.postgresql.host => `postgresql-postgresql.postgresql.svc.cluster.local`
2018/07/10 13:57:43     postgresql:component.postgresql.port => `5432`
2018/07/10 13:57:43     postgresql:component.postgresql.user => `postgres`
2018/07/10 13:57:43     postgresql:hub.components.postgresql.git.clean => `not calculated`
2018/07/10 13:57:43     postgresql:hub.components.postgresql.git.ref => `refs/heads/master 8baf331`
2018/07/10 13:57:43 Component `jenkins-iam-role` failed to deploy
2018/07/10 13:57:43 WARN: Component `jenkins-iam-role` parameters expansion failed:
    Parameter `cloud.role.worker|jenkins-iam-role` value cannot be derived from stack parameters nor outputs
...
2018/07/10 13:57:43 deploy ***jenkins*** (5/13)
2018/07/10 13:57:43 WARN: Component `jenkins` failed to deploy: depends on failed optional component`jenkins-iam-role`
arkadijs commented 6 years ago

After discussion with @akranga we decided that this component will be phased out in favor of per-app IAM role created by Phase 1 of application. I'll insert a special case to skip this component for Overlay stack manifest. Some pipelines will be unaffected by this.