Deploy--->alex--->dev--->managed-learn--->ml-reports-service #532
Replies: 1 comment 9 replies
-
@srikanth-6520 Please check the variable |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
we are getting an error, while deploying the ml-report-service jenkins job, below we have provided jenkins console.
Started by user [Kolluri Srikanth]
Rebuilds build #2
Checking out git https://github.com/project-sunbird/sunbird-devops.git into /var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-service@script/74766eba9651ee97692d587da848d14cae2c225f81df644eb5a529f729d5e85a to read kubernetes/pipelines/deploy_core/Jenkinsfile
The recommended git tool is: NONE
No credentials specified
Removing ansible/inventory/env/hosts
Removing ansible/inventory/env/keys/
Removing ansible/inventory/env/secrets.yml
Removing kubernetes/helm_charts/core/ml-reports-service/values.yaml
Removing metadata.json
Skipping repository private/
Removing private@tmp/
[Pipeline] checkout
The recommended git tool is: NONE
No credentials specified
[Pipeline] sh
[Pipeline] sh
[Pipeline] sh
[Pipeline] stage
[Pipeline] { (parameter checks)
[Pipeline] echo
Found environment variable named hub_org with value as: 961571523562.dkr.ecr.ap-south-1.amazonaws.com/prod
[Pipeline] copyArtifacts
Copied 1 artifact from "ArtifactUpload » dev » managed-learn » ml-core-service" build number 3
[Pipeline] sh
[Pipeline] sh
[Pipeline] echo
image_tag not specified, using the image_tag specified in metadata.json.
[Pipeline] sh
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] sh
[Pipeline] sh
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] stage
[Pipeline] { (ansible-run)
[Pipeline] echo
{env=dev, module=managed-learn, jobName=ml-reports-service, absolute_job_path=ArtifactUpload/dev/managed-learn/ml-core-service, agent=built-in, image_name=ml-core-service, image_tag=release-5.1.0_RC6_3cde99f_1, currentWs=/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-service, ansiblePlaybook=/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-service/kubernetes/ansible/deploy_core_service.yml, ansibleExtraArgs=--extra-vars "chart_path=/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-service/kubernetes/helm_charts/core/ml-reports-service release_name=ml-reports-service image_tag=release-5.1.0_RC6_3cde99f_1 image_name=ml-core-service role_name=sunbird-deploy" --vault-password-file /var/lib/jenkins/secrets/vault-pass}
[Pipeline] dir
Running in /var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-service/private
[Pipeline] {
[Pipeline] echo
Info: Branch override is enabled
[Pipeline] checkout
The recommended git tool is: NONE
using credential bitbucket-cred
[WARNING]: Invalid characters were found in group names but not replaced, use
-vvvv to see details
[WARNING]: * Failed to parse
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/ansible/inventory/env/hosts with yaml plugin: Syntax Error while
loading YAML. found unexpected ':' The error appears to be in
'/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/ansible/inventory/env/hosts': line 1, column 5, but may be elsewhere in
the file depending on the exact syntax problem. The offending line appears to
be: [all:vars] ^ here
[WARNING]: * Failed to parse
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/ansible/inventory/env/hosts with ini plugin:
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/ansible/inventory/env/hosts:150: Section [core:children] includes
undefined group: postgresql-slave
[WARNING]: Unable to parse /var/lib/jenkins/workspace/Deploy/alex/dev/managed-
learn/ml-reports-service/ansible/inventory/env/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
[WARNING]: While constructing a mapping from
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/kubernetes/ansible/roles/sunbird-deploy/defaults/main.yml, line 3,
column 1, found a duplicate dict key (sunbird_time_zone). Using last defined
value only.
[WARNING]: While constructing a mapping from
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/kubernetes/ansible/roles/sunbird-deploy/defaults/main.yml, line 3,
column 1, found a duplicate dict key (nginx_per_ip_connection_limit). Using
last defined value only.
[WARNING]: While constructing a mapping from
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/kubernetes/ansible/roles/sunbird-deploy/defaults/main.yml, line 3,
column 1, found a duplicate dict key (sunbird_portal_player_cdn_enabled). Using
last defined value only.
[WARNING]: While constructing a mapping from
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/kubernetes/ansible/roles/sunbird-deploy/defaults/main.yml, line 3,
column 1, found a duplicate dict key (dial_liveness_readiness). Using last
defined value only.
[WARNING]: While constructing a mapping from
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/kubernetes/ansible/roles/sunbird-deploy/defaults/main.yml, line 924,
column 5, found a duplicate dict key (failureThreshold). Using last defined
value only.
[WARNING]: While constructing a mapping from
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/kubernetes/ansible/roles/sunbird-deploy/defaults/main.yml, line 934,
column 5, found a duplicate dict key (failureThreshold). Using last defined
value only.
[WARNING]: While constructing a mapping from
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/kubernetes/ansible/roles/sunbird-deploy/defaults/main.yml, line 947,
column 5, found a duplicate dict key (failureThreshold). Using last defined
value only.
[WARNING]: While constructing a mapping from
/var/lib/jenkins/workspace/Deploy/alex/dev/managed-learn/ml-reports-
service/kubernetes/ansible/roles/sunbird-deploy/defaults/main.yml, line 957,
column 5, found a duplicate dict key (failureThreshold). Using last defined
value only.
PLAY [local] *******************************************************************
TASK [check for kong db migration] *********************************************
skipping: [localhost]
TASK [sunbird-deploy : template values.yaml file] ******************************
[DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host localhost should use
/usr/bin/python3, but is using /usr/bin/python for backward compatibility with
prior Ansible releases. A future Ansible release will default to using the
discovered platform python for this host. See https://docs.ansible.com/ansible/
2.8/reference_appendices/interpreter_discovery.html for more information. This
feature will be removed in version 2.12. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg.
changed: [localhost]
TASK [sunbird-deploy : copy and template env file from swarm role] *************
failed: [localhost] (item=../../../../ansible/roles/stack-sunbird/templates/ml-reports-service.env) => {
"ansible_loop_var": "item",
"changed": false,
"item": "../../../../ansible/roles/stack-sunbird/templates/ml-reports-service.env"
}
MSG:
AnsibleUndefinedVariable: 'dict object' has no attribute 'druid'
PLAY RECAP *********************************************************************
localhost : ok=1 changed=1 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // stage
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] stage
[Pipeline] { (slack_notify)
[Pipeline] sh
[Pipeline] sh
[Pipeline] sh
[Pipeline] echo
Could not find env specific Slack channel. Check for global slack channel..
[Pipeline] echo
Could not find slack environment variable. Skipping slack notification..
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] stage
[Pipeline] { (email_notify)
[Pipeline] sh
[Pipeline] echo
Could not find env specific email group. Check for global email group..
[Pipeline] echo
Could not find global email group variable. Skipping email notification..
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 2
Finished: FAILURE
Beta Was this translation helpful? Give feedback.
All reactions