cloudfoundry-community / bare-metal-bosh-lite Goto Github PK
View Code? Open in Web Editor NEWBosh-lite on bare-metal
Home Page: https://blog.starkandwayne.com/2014/07/07/bosh-lite-on-bare-metal/
Bosh-lite on bare-metal
Home Page: https://blog.starkandwayne.com/2014/07/07/bosh-lite-on-bare-metal/
I'm trying to get the vagrant up
part to work, but found it failed. I've set the SERVER_IP
and SSH_KEY
.
==> default: [713.14s] Started setting up instance bosh/0 > Waiting
==> default: [1317.72s] Failed setting up instance bosh/0 > Waiting
==> default: [1317.72s]
==> default: [1317.72s] -----
==> default: [1317.72s] Error: Provisioning deployment: Starting instance: Updating instance 0: Waiting: Instance did not reach running state
==> default: [1317.72s] ------
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
/opt/bosh-provisioner/assets/bosh-provisioner -configPath=/opt/bosh-provisioner/config.json 2>/tmp/provisioner.log
The error from the provisioner.log is strange because every request, response worked and then just that one line at the very end indicates there was some error:
********************
[Waiter] 2015/10/08 15:02:50 DEBUG - Sleeping for 1s
[HTTPClient] 2015/10/08 15:02:51 DEBUG - Making request url=https://user:[email protected]:4321/agent
[HTTPClient] 2015/10/08 15:02:51 DEBUG - Request body
********************
{"method":"get_state","arguments":[],"reply_to":"n-a"}
********************
[HTTPClient] 2015/10/08 15:02:51 DEBUG - Received response status=200
[HTTPClient] 2015/10/08 15:02:51 DEBUG - Response body
********************
{"value":{"properties":{"logging":{"max_log_file_size":""}},"job":{"name":"bosh","release":"","template":"","version":"","sha1":"","blobstore_id":"","templates":[{"name":"nats","version":"fake-job-template-version","sha1":"","blobstore_id":""},{"name":"redis","version":"fake-job-template-version","sha1":"","blobstore_id":""},{"name":"blobstore","version":"fake-job-template-version","sha1":"","blobstore_id":""},{"name":"postgres","version":"fake-job-template-version","sha1":"","blobstore_id":""},{"name":"director","version":"fake-job-template-version","sha1":"","blobstore_id":""},{"name":"health_monitor","version":"fake-job-template-version","sha1":"","blobstore_id":""},{"name":"cpi","version":"fake-job-template-version","sha1":"","blobstore_id":""},{"name":"warden","version":"fake-job-template-version","sha1":"","blobstore_id":""}]},"packages":{"cpi":{"name":"cpi","version":"e0fa6c7f81c3c52227419025a68b9c23d7363a3d","sha1":"4b6bab069d9edb66d9bf4d1f41b113df4979e998","blobstore_id":"c0e2db94-19e4-46ad-7951-022f5f69951d"},"director":{"name":"director","version":"80604d390008abf861746064373e1da62a19161b","sha1":"a700c0468924b12609d613e5dbf565d77a1b3c08","blobstore_id":"4f33c95c-1837-4ac4-6fc5-ffe8b706ed6f"},"genisoimage":{"name":"genisoimage","version":"008d332ba1471bccf9d9aeb64c258fdd4bf76201","sha1":"12dd1205514e9ecc1ee898dee42c8312f943410c","blobstore_id":"079cfba6-06bb-4ef1-7072-6cccbef57608"},"health_monitor":{"name":"health_monitor","version":"c3cd40c0e3781379c4fea367d987fcc890eb671e","sha1":"1454581ae3490793ea3870b662472c7661dffa95","blobstore_id":"f58bcdf7-2b6b-497d-7dfc-1541b3c22bfe"},"iptables":{"name":"iptables","version":"7226d311e90f49b05287e79f339581a1de9ea82e","sha1":"9af1e7afe669a1a2cbc8e89cb27de298cc6c5af2","blobstore_id":"838be972-d333-41ec-5b7a-9f5c565b4b20"},"libpq":{"name":"libpq","version":"f181aa97dd63567e04d897762f0440fb2bef1517","sha1":"0906f9ffbf06dad1fdb2b7cb1e7a55e9ef27f03e","blobstore_id":"c5bc241e-eab1-418e-77af-03a5cfa321bc"},"mysql":{"name":"mysql","version":"e5309aed88f5cc662bc77988a31874461f7c4fb8","sha1":"c47027eafc4c8b0d34a48a9dacc07c976f5deddd","blobstore_id":"01211ba1-5589-4b82-4317-4f7c585a0b7d"},"nats":{"name":"nats","version":"6a31c7bb0d5ffa2a9f43c7fd7193193438e20e92","sha1":"2e7f0554741fa6ecbcb4df7e11cb8cdfa65998ee","blobstore_id":"6fb1e3ea-820e-4845-79a1-645216d553a1"},"nginx":{"name":"nginx","version":"0ccc40df032599285cb16a4f2dfdf324a4a61a26","sha1":"77e9ef7af4a4f1951fa96167df726207acf620ed","blobstore_id":"fd8d9026-cfb9-4e0a-41d0-234839ce9b05"},"pid_utils":{"name":"pid_utils","version":"78702c2c2bbbba330b8d5fc3a1a34ba7e0b36906","sha1":"904dff7df94e7bbb26de9c1b36d63eab5285a0e5","blobstore_id":"a8de7c92-6d01-491d-46ac-8b7b7faf3d16"},"postgres":{"name":"postgres","version":"aa7f5b110e8b368eeb8f5dd032e1cab66d8614ce","sha1":"616872149856caa9e62db0d8a2d9d7512526eefc","blobstore_id":"9a21ee33-1fb8-460c-5d6f-0454354c52a5"},"redis":{"name":"redis","version":"1700dbaacfd8780da866e404bd41b46fb4be5c2f","sha1":"02e63aa2e99d8c909b5e9c2fb05ab5dc178bf040","blobstore_id":"64a91742-b594-492e-6b83-4ac36008c600"},"ruby":{"name":"ruby","version":"c28e01e561dd7e1bd4ce44f134970dc9f5d7e8fc","sha1":"92206d45b7bb4a4422c4271f21ed5d0e81dfb8f1","blobstore_id":"4f6820c7-8da8-427a-6044-fb58ef0677b7"},"shadow":{"name":"shadow","version":"ffd1741bd9e0a176e67c61ef70cd0ed76b0ec285","sha1":"069a2db05ddf5a3adc994367b4d82226fe72f9db","blobstore_id":"6ef4ae5f-52eb-4640-69a7-ccb361d3cee2"},"warden-linux":{"name":"warden-linux","version":"7195b077c911d0328fc3e32f2e0ee34abeaafde2","sha1":"b9505b8891905cbbbdd9161c856701a7f49082e7","blobstore_id":"715e2718-e21b-43b8-720d-0053388c9cf1"}},"configuration_hash":"fake-configuration-hash","networks":{"default":{"gateway":"10.0.2.2","ip":"10.0.2.15","netmask":"255.255.255.0","type":"dynamic"}},"resource_pool":{},"deployment":"bosh-lite","index":0,"persistent_disk":0,"rendered_templates_archive":{"sha1":"4a7f1246021bb3b61a456853571b188475e227d5","blobstore_id":"a0035dcd-f232-4063-6e65-49344532b410"},"agent_id":"agent-id-bosh-0","bosh_protocol":"1","job_state":"failing","vm":{"name":"vm-name-bosh-0"},"ntp":{"message":"file missing"}}}
********************
[Log] 2015/10/08 15:02:51 ERROR - Error occurred: Provisioning deployment: Starting instance: Updating instance 0: Waiting: Instance did not reach running state
Thank you in advance.
I followed the provided instructions and received this output:
[vcap@svr-lxt bare-metal-bosh-lite]$ vagrant up
Bringing machine 'default' up with 'managed' provider...
==> default: Linking with managed server 192.168.1.16
==> default: -- Server: 192.168.1.16
[vcap@svr-lxt bare-metal-bosh-lite]$ vagrant provision
==> default: The managed server is not reachable. Check if the `config.managed.server` is correct.
[vcap@svr-lxt bare-metal-bosh-lite]$
What am I missing? Will this work or Cent OS 7.3?
-->bosh deploy
Acting as user 'admin' on deployment 'cf-warden' on 'Bosh Lite Director'
Getting deployment properties from director...
Unable to get properties list from director, trying without it...
Cannot get current deployment information from director, possibly a new deployment
Please review all changes carefully
Deploying
Are you sure you want to deploy? (type 'yes' to continue): yes
Director task 12
Error 40001: Required property `gateway' was not specified in object ({"cloud_properties"=>{"name"=>"random"}, "range"=>"10.244.0.0/30", "reserved"=>["10.244.0.1"], "static"=>["10.244.0.2"]})
Hi I tried running the example by Stark&Wayne
STATIC_IP=x.x.x.x
knife solo prepare root@$STATIC_IP
My result
WARNING: No knife configuration file found
Bootstrapping Chef...
[email protected]'s password:
[email protected]'s password:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:01:02 --:--:-- 0curl: (7)
Failed to connect to www.opscode.com port 443: Connection timeout
bash: install.sh: The file or directory could not be found
Generating node config 'nodes/x.x.x.x.json'...
In line with this, could anyone please advise, is there anything I would need to configure or setup to get this to work?
Please advise what I am missing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.