Git Product home page Git Product logo

vagrant-opdk-box's Introduction

Welcome to stackinabox.io

Introduction

This vagrant project will stand up a single Ubuntu 14.04 running OpenStack Liberty and Docker using Virtualbox. It will pull Docker images for UrbanCode Deploy, UrbanCode Deploy Agent, UrbanCode Patterns Blueprint Designer, and UrbanCode Patterns Engine. Using this vagrant image, once running using vagrant up, you'll be able to design and develop OpenStack HEAT based cloud automation that you can use to deploy applications to the embedded OpenStack or to any other cloud provider supported by UrbanCode Deploy's Blueprint Designer (Amazon Web Services, Softlayer, Azure, or even your on-prem VMware vCenter).

Using this vagrant environment, it is hoped that you will share the automation that you develop to deploy applications to the cloud with the larger community. An example of how to share automation is given with the JKE Banking Application which can be easily cloned into the running environment and installed via the init.sh script found in the root of the JKE cloned repository.

Future Integrations

It's planned to add further Docker images to this vagrant setup to support many other deployment automation tools such as:

Set Up Instructions

Prerequisites

    # install a few required vagrant plugins
    vagrant plugin install vagrant-cachier
    vagrant plugin install vagrant-docker-compose
    vagrant plugin install vagrant-multi-hostsupdater

Getting Started

    # stand up the OpenStack and UrbanCode environment
	git clone https://github.com/stackinabox/stackinabox.io.git 
	cd stackinabox.io/vagrant
	vagrant up

After executing the above you can open your local web browser to http://192.168.27.100:9080/landscaper and login with demo/labstack. The demo user is intended to be the user primarily used for building your automation. The demo user belongs to a 'demo' team in the UrbanCode Blueprint Designer and has it's own tenant in OpenStack that will be used to run any automation provisioned through the Blueprint Designer on the OpenStack server when logged in as the demo user. Additional user login information is provided below, under the Access Information section, to gain access to the administration views for both the Blueprint Designer as well as for the OpenStack server.

Install Example JKE Banking Application

	cd stackinabox.io/vagrant

	# import the example JKE Banking Application automation
	vagrant ssh 
	cd /vagrant/patterns
	git clone https://github.com/stackinabox/jke.git 
	cd jke
	./init.sh

If you have never used UrbanCode Deploy or the UrbanCode Blueprint Designer before you can open your browser to the url that is displated at the end of the JKE Banking Application's init.sh script you ran above (http://192.168.27.100:9080/landscaper/view/tutorial) and login as demo/labstack user. You will see a "guided tour" frame on the right side of your browser window. Just follow the instructions and it will guide you through how to deploy the JKE Banking Application using UrbanCode Deploy and UrbanCode Blueprint Designer.

Halt the running environment without loosing any data/work

	cd stackinabox.io/vagrant

	# halt the running vagrant environment without loosing any data
	vagrant halt

Resume the running environment with all previous data/work restored

	cd stackinabox.io/vagrant

	# resume the running vagrant environment with all previous data/work restored
	# relies on having previously run 'vagrant halt'
	vagrant up

Destroy vagrant environment and restart from begining (will loose all existing data/work)

	cd stackinabox.io/vagrant
	
	# destroy existing enviornment and restart from scratch (will loose any existing data/work)
	vagrant destroy
	vagrant up

Connect UrbanCode Blueprint Designer to Amazon's AWS

	cd stackinabox.io/vagrant
	vagrant up
	vagrant ssh

	# once logged into the vagrant box using the previous 'vagrant ssh' command
	./aws-setup.sh

Access Information

vagrant-opdk-box's People

Contributors

sudhakarau1 avatar tpouyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vagrant-opdk-box's Issues

Run UCD container with host networking

I had to run the UCD container with --net-host (docker run --net=host -d --restart=always --name=urbancode_deploy -e LICENSE=accept stackinabox/urbancode-deploy:6.2.1.1.78164) , otherwise the Openstack instances couldn't get to the UCD container.
--net=host for UCD also means the Designer container can't use --link to it

Problem booting machine on vagrant 1.8.1

I encountered the following error message with the latest as of 9/5/2016 using vagrant 1.8.1.

==> openstack: Machine booted and ready!
==> openstack: Checking for guest additions in VM...
==> openstack: Checking for host entries
==> openstack: Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/sbin/ifdown eth1 2> /dev/null

Stdout from the command:



Stderr from the command:

mesg: ttyname failed: Inappropriate ioctl for device

I found some Google responses that alluded to problems due to network adapter shifts on the latest Ubuntu. I upgraded to vagrant 1.8.5 and continued to see the following message:

==> openstack: mesg: ttyname failed: Inappropriate ioctl for device

However, the provisioning continued.

Recommend specifying a table with supported versions for VirtualBox, Vagrant, and Docker.

unable to launch instance on 0.9.6

The ubuntu 14.04/16.04 images threw an error:
Message:
Exceeded maximum number of retries. Exceeded max scheduling attempts 3 for instance c3f4086e-c882-4ba3-9689-691b40d95bbf. Last exception: Invalid raw.lxc line: |
Code : 500
Details : File "/opt/stack/nova/nova/conductor/manager.py", line 492, in build_instances filter_properties, instances[0].uuid) File "/opt/stack/nova/nova/scheduler/utils.py", line 184, in populate_retry raise exception.MaxRetriesExceeded(reason=msg)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.