Problems deploying SCD's sample code on IWD
Hi,
I've followed all instructions on SCD's information center but I still have a problem when the build definition tries to deploy the code on IWD. I'm newest on this and I'm not sure where the problem is. This is the log error:
core_deploy:
[echo] Deploying application to test environment
[echo] Sending request to cloud environment to deploy application
[weaver:validate] Processing task 'validate' for environment 'environment'. (deps_file_url = 'http://libraryserver/ram.ws/oslc/assets/JKE_infra/2.0.4.20130524-1643/artifactContents/Deps-Money_that_Matters_Application')
[weaver:validate] Property 'iwd_properties.ssl_verify_cert' = false
[weaver:validate] I, [2013-05-24T16:45:18.680000 #20515] INFO -- : Simulating deployment of topology :jke_testing_env with properties: '{}' and deploy parameters: '{:deps_file_url=>"http://libraryserver/ram.ws/oslc/assets/JKE_infra/2.0.4.20130524-1643/artifactContents/Deps-Money_that_Matters_Application"}'.
[weaver:validate] W, [2013-05-24T16:45:18.757000 #20515] WARN -- : PROPS_FILE iwd_properties.password is stored as plaintext
[weaver:validate] W, [2013-05-24T16:45:19.045000 #20515] WARN -- : System Properties iwd.password is stored as plaintext
[weaver:validate] I, [2013-05-24T16:45:19.049000 #20515] INFO -- : Connecting to IWD at 'https://cloudhost'.
[weaver:validate] W, [2013-05-24T16:45:21.765000 #20515] WARN -- : System Properties iwd.password is stored as plaintext
[weaver:validate] I, [2013-05-24T16:45:21.767000 #20515] INFO -- : Connecting to IWD at 'https://cloudhost'.
[weaver:validate] W, [2013-05-24T16:45:23.805000 #20515] WARN -- : Caught Error: Unrecognized Code, 404 - Not Found, backtrace=/opt/jruby/lib/ruby/gems/1.8/gems/devops_deployment_lib-0.2.1/lib/devops_deployment_lib/providers/iwd_virtual_system_client.rb:604:in `execute_request'/opt/jruby/lib/ruby/gems/1.8/gems/devops_deployment_lib-0.2.1/lib/devops_deployment_lib/providers/iwd_virtual_system_client.rb:540:in `execute_get_request'/opt/jruby/lib/ruby/gems/1.8/gems/devops_deployment_lib-0.2.1/lib/devops_deployment_lib/providers/iwd_virtual_system_client.rb:182:in `describe_pattern'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/iwd/iwd_weaver_inf_generator.rb:93:in `generate_infrastructure'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/builtins.weaver:545:in `(eval)'org/jruby/RubyProc.java:270:in `call'org/jruby/RubyProc.java:220:in `call'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/core/rule.rb:118:in `validate'org/jruby/RubyArray.java:1612:in `each'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/core/rule.rb:115:in `validate'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/core/root.rb:117:in `validate_collect'org/jruby/RubyHash.java:1170:in `each'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/core/root.rb:116:in `validate_collect'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/environment.rb:142:in `validate'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/environment.rb:159:in `validate_report'<script>:2:in `(root)'
[weaver:validate] I, [2013-05-24T16:45:23.825000 #20515] INFO -- : File not found 'roles/jke_application_role.rb'
[weaver:validate] I, [2013-05-24T16:45:23.830000 #20515] INFO -- : File not found 'roles/jke_database_role.rb'
[weaver:validate] Validated environment 'environment': 0 warnings and 2 errors
[echo] error_count = 2
[echo] warn_count = 0
[weaver:deploy] Processing task 'deploy' for environment 'environment'.
[weaver:deploy] Property 'iwd_properties.ssl_verify_cert' = false
[weaver:deploy] timeout = 1800 --- iwdSsl = false
[weaver:deploy] Using log level INFO for deployment.I, [2013-05-24T16:45:24.222000 #20515] INFO -- : Deploying topology :jke_testing_env with properties: '{:log_level=>1, :timeout=>1800, "iwd_properties"=>{"hostname"=>"https://cloudhost", "user"=>"cloudUser", "password"=>"UserPassword", "ssl_verify_cert"=>false, "timeout"=>1800}}' and deploy parameters: '{:deps_file_url=>"http://libraryserver/ram.ws/oslc/assets/JKE_infra/2.0.4.20130524-1643/artifactContents/Deps-Money_that_Matters_Application"}'.
[weaver:deploy] W, [2013-05-24T16:45:24.236000 #20515] WARN -- : PROPS_FILE iwd_properties.password is stored as plaintext
[weaver:deploy] E, [2013-05-24T16:45:26.188000 #20515] ERROR -- : Caught #<DevopsDeploymentLib::HttpError: Error: Unrecognized Code, 404 - Not Found> deploying; backtrace=/opt/jruby/lib/ruby/gems/1.8/gems/devops_deployment_lib-0.2.1/lib/devops_deployment_lib/providers/iwd_virtual_system_client.rb:604:in `execute_request'/opt/jruby/lib/ruby/gems/1.8/gems/devops_deployment_lib-0.2.1/lib/devops_deployment_lib/providers/iwd_virtual_system_client.rb:554:in `execute_post_request'/opt/jruby/lib/ruby/gems/1.8/gems/devops_deployment_lib-0.2.1/lib/devops_deployment_lib/providers/iwd_virtual_system_client.rb:425:in `create_instances'/opt/jruby/lib/ruby/gems/1.8/gems/devops_deployment_lib-0.2.1/lib/devops_deployment_lib/providers/virtual_system_deployment_manager.rb:123:in `deploy'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/deployers/plugins/iwd_deployer.rb:125:in `deploy'/opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/environment.rb:198:in `deploy'<script>:11:in `(root)'
[weaver:deploy] Weaver::Core::WeaverError: Virtual system deployment failed (original=Error: Unrecognized Code, 404 - Not Found)
[weaver:deploy] deploy at /opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/deployers/plugins/iwd_deployer.rb:129
[weaver:deploy] deploy at /opt/jruby/lib/ruby/gems/1.8/gems/weaver-0.2.9/lib/weaver/environment.rb:198
[weaver:deploy] (root) at <script>:11
BUILD FAILED
/home/jazz/SCD_sampleCode/JKEDeliveryAnt/build.xml:1031: Error while processing deploy task (environment = environment) WeaverException message: Error while executing Weaver: (WeaverError) Virtual system deployment failed (original=Error: Unrecognized Code, 404 - Not Found)
Total time: 1 minute 49 seconds
Build failed. Exit value was 1.
**********************************************
* The Jazz source control setup, building application, publishing application to library, publishing environment library entry and validating weaver environment definition activities are completed.
* The cloudUser has access to cloudhost, actually I've created the Virtual System Pattern using it.
* This is the validation_output.txt :
/home/jazz/SCD_sampleCode/JKEDeliveryAnt/definitions/environment/jke_testing_env.weaver:16: ERROR SCCD_WEAVER_IWD_ACCESS_01 in cloud_pattern :jke_testing_env.pattern User cannot access pattern 'JKE application two nodes' with id '1' at 'https://cloudhost' as user 'cloudUser.' at /home/jazz/SCD_sampleCode/JKEDeliveryAnt/definitions/environment/jke_testing_env.weaver:16 (IWD pattern access error)
Suggested resolution:
Import a different pattern.; Import a different pattern and use it in the topology instead of pattern 'JKE application two nodes' with id '1.'
/home/jazz/SCD_sampleCode/JKEDeliveryAnt/definitions/environment/jke_testing_env.weaver:16: ERROR SCCD_WEAVER_IWD_SYNC_01 in cloud_pattern :jke_testing_env.pattern User cannot access pattern 'JKE application two nodes' with id '1' at 'https://cloudhost' as user 'cloudUser.' at /home/jazz/SCD_sampleCode/JKEDeliveryAnt/definitions/environment/jke_testing_env.weaver:16 (IWD pattern is out of sync)
Suggested resolution:
Import a different pattern.; Import a different pattern and use it in the topology instead of pattern 'JKE application two nodes' with id '1.'
/home/jazz/SCD_sampleCode/JKEDeliveryAnt/definitions/environment/jke_testing_env.weaver:37: INFO SCCD_WEAVER_CHEF_01 in chef_automation :jke_testing_env.pattern.jetty_server.jke_application_role Did not find role file ../../../../com.ibm.devops.sample.infrastructure/chef/roles/jke_application_role.rb; File not found: 'roles/jke_application_role.rb' in '../../../../com.ibm.devops.sample.infrastructure/chef' at /home/jazz/SCD_sampleCode/JKEDeliveryAnt/definitions/environment/jke_testing_env.weaver:37 (Chef Automation model does not match Chef Automation)
Suggested resolution:
Model does not match Chef cookbook; Recreate Weaver chef_automation model of Chef cookbook by reimporting
/home/jazz/SCD_sampleCode/JKEDeliveryAnt/definitions/environment/jke_testing_env.weaver:38: INFO SCCD_WEAVER_CHEF_01 in chef_automation :jke_testing_env.pattern.mysql_server.jke_database_role Did not find role file ../../../../com.ibm.devops.sample.infrastructure/chef/roles/jke_database_role.rb; File not found: 'roles/jke_database_role.rb' in '../../../../com.ibm.devops.sample.infrastructure/chef' at /home/jazz/SCD_sampleCode/JKEDeliveryAnt/definitions/environment/jke_testing_env.weaver:38 (Chef Automation model does not match Chef Automation)
Suggested resolution:
Model does not match Chef cookbook; Recreate Weaver chef_automation model of Chef cookbook by reimporting
******************************************
Thanks in advance. |
Accepted answer
Hi, Ivan. The log shows that the locations of the library server and cloud host are not being found:
Deploying topology :jke_testing_env with properties: '{:log_level=>1, :timeout=>1800, "iwd_properties"=>{"hostname"=>"https://cloudhost", "user"=>"bulaivan@mx1.ibm.com", "password"=>"****", "ssl_verify_cert"=>false, "timeout"=>1800}}' and deploy parameters: '{:deps_file_url=>"http://libraryserver/ram.ws/oslc/assets/JKE_infra/2.0.4.20130524-1643/artifactContents/Deps-Money_that_Matters_Application"}'. Check that the build definition is properly pointing to your continuous delivery project and your properties file. Also make sure that your properties file is filled in with the locations of these servers and that the format of the file is correct. Note that if you are using Rake builds, the build_properties.yml file must have a specific format; see the note to step 11 on the page Creating continuous delivery projects. Let me know if that helps, Tim McMackin Ivan Bula selected this answer as the correct answer
|
One other answer
Hi Tim,
I really appreciate your help on this. I deleted the sample pattern and facade files and I modified the /environment/env file with the information of the files that I've created and it is working fine right now. Thanks |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.