Cannot Deploy bosh-lite: 'bosh deploy' failing constantly

441 views
Skip to first unread message

Og Iwunze

unread,
Nov 4, 2013, 12:52:23 PM11/4/13
to bosh-...@cloudfoundry.org
hey guys,

I'm hoping someone will be able to come to my help here. I've been trying to get an instance of CF v2 (AWS deployment or bosh-lite) deployed without much luck unfortunately.  I decided to focus on bosh-lite before trying out the real bosh deployment on AWS (since my attempts to deploy to AWS has been fruitless).

My problem is that I can't get beyond 'bosh deploy' following the steps given in the online docs. Error:

OSTML0109169:cf-release ogonna$ bosh deploy
Getting deployment properties from director...
Compiling deployment manifest...
Please review all changes carefully
Deploying `cf-manifest.yml' to `Bosh Lite Director' (type 'yes' to continue): yes

Director task 44

Preparing deployment
  binding deployment (00:00:00)                                                                    
  binding releases: Release version `tango/' doesn't exist (00:00:00)                              
Error                   2/9 00:00:00                                                               

Error 30006: Release version `tango/' doesn't exist

Task 44 error

For a more detailed error report, run: bosh task 44 --debug

Then I modified cf-manifest.yml and specified a version 146.1-dev (as seen in bosh status command)

OSTML0109169:cf-release ogonna$ vim ../manifests/cf-manifest.yml
OSTML0109169:cf-release
ogonna$ bosh deploy
Getting deployment properties from director...
Compiling deployment manifest...
Please review all changes carefully
Deploying `cf-manifest.yml' to `Bosh Lite Director' (type 'yes' to continue): yes

Director task 45

Preparing deployment
  binding deployment (00:00:00)                                                                    
  binding releases: Release version `tango/146.1-dev' doesn't exist (00:00:00)                     
Error                   2/9 00:00:00                                                               

Error 30006: Release version `tango/146.1-dev' doesn't exist

Task 45 error

For a more detailed error report, run: bosh task 45 --debug


I'll be very grateful for any helpful suggestions.  Below is further information which may aid troubleshooting and raising this issue as a bug
  • bosh gem versions
OSTML0109169:cf-release ogonna$ gem list bosh

*** LOCAL GEMS ***

bosh (1.3.0)
bosh-registry (1.5.0.pre.1215, 1.5.0.pre.1145)
bosh-stemcell (1.5.0.pre.1215, 1.5.0.pre.1145)
bosh_aws_cpi (1.5.0.pre.1215, 1.5.0.pre.1145)
bosh_cli (1.5.0.pre.1215, 1.5.0.pre.1145)
bosh_cli_plugin_aws (1.5.0.pre.1215, 1.5.0.pre.1145)
bosh_cli_plugin_micro (1.5.0.pre.1215, 1.5.0.pre.1145)
bosh_common (1.5.0.pre.1215, 1.5.0.pre.1145)
bosh_cpi (1.5.0.pre.1215, 1.5.0.pre.1145)
bosh_openstack_cpi (1.5.0.pre.1215, 1.5.0.pre.1145)
bosh_vcloud_cpi (0.4.9)
bosh_vsphere_cpi (1.5.0.pre.1215, 1.5.0.pre.1145)


  • bosh director info
OSTML0109169:cf-release ogonna$ bosh status
Config
             /Users/
ogonna/.bosh_config

Director
  Name       Bosh Lite Director
  URL        https://192.168.50.4:25555
  Version    1.5.0.pre.1193 (3300587c)
  User       admin
  UUID       b34b550b-d7e8-471d-b35a-a5e3cd599724
  CPI        warden
  dns        enabled (domain_name: bosh)
  compiled_package_cache enabled (provider: local)
  snapshots  disabled

Deployment
  Manifest   /Users/
ogonna/cloudfoundry-workspace/bosh-lite/manifests/cf-manifest.yml

Release
  dev        tango/146.1-dev
  final      cf/146


  • stemcell version(s) you are using
bosh=# select * from stemcells;
 id |     name      | version |                      cid                      |                   sha1                  
----+---------------+---------+-----------------------------------------------+------------------------------------------
  1 | bosh-stemcell | 993     | stemcell-ecdfcced-f598-4d58-b38b-7e324f52b87f | 5b2a893416c3a8e1457342dfacfe170b82927f3b
(1 row)



  • the release I am trying to deploy

OSTML0109169:cf-release ogonna$ pwd
/Users/
ogonna/cloudfoundry-workspace/bosh-lite/cf-release
OSTML0109169:cf-release
ogonna$ git log -1
commit 0cecf43d5d2d4634806be6c4a8d0c4ac090e7029
Author: Eric Malm and Onsi Fakhouri <pair+er...@pivotallabs.com>
Date:   Fri Nov 1 15:58:31 2013 -0700

    update should sync --recursive

  • My deployment manifest
    • cf-manifest.yml file attached

Many thanks
Og

cf-manifest.yml

Dr Nic Williams

unread,
Nov 4, 2013, 12:55:04 PM11/4/13
to bosh-users
Did you change cf-manifest.yml to edit "cf" to "tango"?

releases:
- name: tango
  version: 146.1-dev


What does "bosh releases" say you have? I think it should be "cf".

Change tango -> cf and "bosh deploy" again.

Yo

Og Iwunze

unread,
Nov 4, 2013, 1:25:24 PM11/4/13
to bosh-...@cloudfoundry.org
Thanks for your quick response Dr Nic.

Yes, I modified cf-manifest.yml.

OSTML0109169:cf-release ogonna$ grep release ../manifests/cf-manifest.yml  -A3
releases:
- name: tango
  version: 146.1-dev
resource_pools:

'bosh releases' command fails with an error

OSTML0109169:cf-release ogonna$ bosh releases
/Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/bosh_cli-1.5.0.pre.1215/lib/cli/commands/release.rb:582:in `block (2 levels) in build_releases_table': undefined method `join' for nil:NilClass (NoMethodError)
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/bosh_cli-1.5.0.pre.1215/lib/cli/commands/release.rb:580:in `each'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/bosh_cli-1.5.0.pre.1215/lib/cli/commands/release.rb:580:in `block in build_releases_table'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/terminal-table-1.4.5/lib/terminal-table/table.rb:210:in `yield_or_eval'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/terminal-table-1.4.5/lib/terminal-table/table.rb:17:in `initialize'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/terminal-table-1.4.5/lib/terminal-table/table_helper.rb:5:in `new'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/terminal-table-1.4.5/lib/terminal-table/table_helper.rb:5:in `table'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/bosh_cli-1.5.0.pre.1215/lib/cli/commands/release.rb:577:in `build_releases_table'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/bosh_cli-1.5.0.pre.1215/lib/cli/commands/release.rb:156:in `list'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/bosh_cli-1.5.0.pre.1215/lib/cli/command_handler.rb:57:in `run'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/bosh_cli-1.5.0.pre.1215/lib/cli/runner.rb:59:in `run'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/bosh_cli-1.5.0.pre.1215/lib/cli/runner.rb:18:in `run'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/gems/bosh_cli-1.5.0.pre.1215/bin/bosh:7:in `<top (required)>'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/bin/bosh:23:in `load'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/bin/bosh:23:in `<main>'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `eval'
    from /Users/ogonna/.rvm/gems/ruby-1.9.3-p448/bin/ruby_executable_hooks:15:in `<main>'


I've tried setting 'release' in cf-manifest to 'cf' and running 'bosh deploy' and that failed too.

OSTML0109169:cf-release ogonna$ bosh deploy
Getting deployment properties from director...
Compiling deployment manifest...
Release 'cf' not found on director. Unable to resolve 'latest' alias in manifest.

Dr Nic Williams

unread,
Nov 4, 2013, 1:36:29 PM11/4/13
to bosh-...@cloudfoundry.org, bosh-...@cloudfoundry.org
Can you clone cf-release and within it, run "bosh upload release releases/cf-146.yml"?

If you haven't uploaded the "cf" release then it's going to get annoyed at you :)

No idea why it gave you an exception instead of "No releases".


To unsubscribe from this group and stop receiving emails from it, send an email to bosh-users+...@cloudfoundry.org.

Og Iwunze

unread,
Nov 4, 2013, 2:04:35 PM11/4/13
to bosh-...@cloudfoundry.org
Thanks Dr Nic

This might just be the missing piece of the puzzle.  One thing I noticed after running 'bosh upload release releases/cf-146.yml' as advised is that 'release_versions' table got populated.

BEFORE
bosh=# select * from release_versions;           
 id | version | release_id | commit_hash | uncommitted_changes
----+---------+------------+-------------+---------------------
(0 rows)

AFTER
bosh=# select * from release_versions;
 id | version | release_id | commit_hash | uncommitted_changes
----+---------+------------+-------------+---------------------
  3 | 146     |          3 | 7a236fee    | t
(1 row)


Now I will run 'bosh deploy' with fingers crossed.  Will report back on the outcome shortly.

May I humbly ask that the online documentation is updated with the 'bosh upload release releases/cf-146.yml' step please? I wouldn't have been able to figure that one out.

Many thanks
Ogonna

Dr Nic Williams

unread,
Nov 4, 2013, 2:05:43 PM11/4/13
to bosh-...@cloudfoundry.org, bosh-...@cloudfoundry.org
Perhaps can you put in a PR for the doc change? To teach is to learn twice :)
Reply all
Reply to author
Forward
0 new messages