Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Provisioning UCD agent from Blueprint Designer fails silently with: Agent did not show up even after agent_timeout_value seconds!

2700004KMS gravatar image
Question by michael.grosze  (1020) | Oct 03, 2017 at 07:36 AM urbancodetimeoutblueprint-designerblueprints

We are using UrbanCode Deploy and Blueprint Designer 6.2.5.

When provisioning a blueprint from Blueprint designer, the provisioning fails with: Resource CREATE failed: NameError: resources.component_name: Agent did not show up even after agent_timeout_value seconds!

I looked already at the help Troubleshooting deployments, increased the timeouts etc.

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

1 reply

  • Sort: 
2700004KMS gravatar image
Accepted answer

Answer by michael.grosze (1020) | Oct 03, 2017 at 07:39 AM

The HOT file section: ucd_agent_install_linux: contains

         if ps -ef | grep -v grep | grep -q air-monitor.jar ; then
           exit 0
         elif [ -d /opt/ibm ]; then
           exit 0
         fi
         if command -V apt-get && ! command -V curl; then apt-get -y install curl; fi

If I have a folder /opt/ibm, the script will exit with error code 0. In our case the VM had already such a folder.

Normally, you can see in /var/log/cloud-init.log:

 Cloud-init v. 0.7.9 running 'modules:final' at Thu, 28 Sep 2017 09:31:42 +0000. Up 16.16 seconds.
 /var/lib/cloud/instance/scripts/part-001: line 22: command: apt-get: not found

In the broken one, I can see:

 2017-09-06 16:37:02,158 - __init__.py[DEBUG]: {'Content-Type': 'text/x-not-multipart', 'Content-Disposition': 'attachment; filename="part-001"', 'MIME-Version': '1.0'}
 2017-09-06 16:37:02,158 - __init__.py[DEBUG]: Empty payload of type text/x-not-multipart
 ...
 2017-09-28 09:03:15,394 - util.py[DEBUG]: Running command ['/var/lib/cloud/instance/scripts/part-001'] with allowed return codes [0] (shell=False, capture=False)
 2017-09-28 09:03:15,529 - util.py[DEBUG]: Running command ['/var/lib/cloud/instance/scripts/runcmd'] with allowed return codes [0] (shell=False, capture=False)

Thus, we exited with error code 0.

I replaced in the HOT file the snipped above with:

         if ps -ef | grep -v grep | grep -q air-monitor.jar ; then
           exit 0
         elif [ -d /opt/ibm ]; then
         #  exit 0
           echo hello
         fi

Like that the deployment could proceed, the agent got installed in the agent_timeout and the process did run.

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

130 people are following this question.

Answers

Answers & comments

Related questions

Blueprint Designer: Discovery error 500: Timeout attempting to retrieve the list of UCD Components 1 Answer

Where I could find Blueprint Designer server log file? 1 Answer

Installing the Blueprint Designer Heat extension plug-ins into ICM Heat engine results in breaking SSL communication 1 Answer

can I download & install blueprint design server evaluation..?? 1 Answer

How to automate app deployment to the cloud environment? 0 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges