Menu
  • HOME
  • TAGS

Cloud Platforms- sudo: unable to resolve host

ubuntu,amazon-ec2,sudo,openstack

EC2 instances inside VPC will resolve their auto-assigned internal hostnames correctly, only if you configure the VPC correctly. You need: DNS hostnames: yes DNS resolution: yes http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-dns.html...

How scale up/out mechanism works in OpenStack and Cloudfoundry integration?

cloud,openstack,cloudfoundry,bosh

Cloud Foundry is typically deployed on the infrastructure (OpenStack, vSphere, AWS) using BOSH. BOSH will create the VMs and install the packages necessary to run the CF platform. Increasing the VMs or compute services available to CF is done by BOSH, typically as a manual operation. There is no built-in...

Configure cloud-controller.xml in Stratos

openstack,wso2stratos

I'm assuming you're using Apache Stratos 4.0.0, which earlier was WSO2 Stratos. If you're using stratos-installer[1], then you only need to provide the OpenStack details in INSTALL_DIR/stratos-installer/conf/setup.conf file. The installer will configure cloud-controller.xml along with the other files using the information given in the setup.conf file. However, if you're just...

I want to create an open source cloud storing and sharing system, where should i start?

encryption,cloud,openstack,eucalyptus,cloud-storage

I can suggest you to start with SWIFT object storage. Its an open stack based object store. You can get details about swift object store here : http://docs.openstack.org/developer/swift/ More over if you are developing it on java you can use either jcloud or joss as a client. Using the joss...

Openstack cloud (identity service, nova service and swift service) vs Java application

java,openstack,openstack-horizon

There is a project on github (CloudServiceDeployer) handling almost what you were asking for. Take a more closer view to the classes below OpenstackConnector.java Deployer.java ...

Creating a Virtual Machine on Bluemix, is giving an error while importing ssh key [closed]

ssh,openstack,bluemix

Try following github's steps to create a key pair. It seems your key pair might be invalid. Does your keypair work else where?

Openstack with neutron on two physical nodes

openstack,openstack-neutron

You can install all of OpenStack on a single system for development and testing purposes. Given that a single node installation is possible, it should follow that a two-node installation is also possible (and it is). The documentation recommends three NICs because this leads to the simplest configuration. However, you...

Bluemix: Cannot create VM with public IP

openstack,bluemix

I have not seen that error. I think the problem you ran into may be intermittent. I just created a VM an hour ago using the Bluemix dashboard and that worked no problem. As usual, the VM was assigned two IP's, one internal and one public. As you've discovered, in...

How to get Devstack Juno

openstack,devstack,openstack-horizon,juno

I found this: git clone https://github.com/openstack-dev/devstack.git -b stable/juno...

Add Security Groups to Instance in Openstack

java,cloud,openstack,jclouds

NovaApi novaApi = ContextBuilder .newBuilder("openstack-nova") .credentials("username", "api_key") .buildApi(NovaApi.class); Ingress ingress = Ingress.builder().fromPort(80).toPort(80).ipProtocol(IpProtocol.TCP).build(); SecurityGroupApi securityGroupApi = novaApi.getSecurityGroupExtensionForZone("RegionOne").get(); SecurityGroup securityGroup = securityGroupApi.createWithDescription("name", "description"); SecurityGroupRule rule = securityGroupApi.createRuleAllowingCidrBlock(securityGroup.getName(), ingress,...

Devstack failed with openstackclient.shell Exception raised:python-neutronclient

python,python-2.7,openstack,devstack

I found there are some *.pth files under /usr/local/lib/python2.7/dist-packages, and one of them include some items pointing to devstack default directories (i.e., /opt/stack/python-neutronclient, and so on). That's why those directories are taken as part of python path. There are also some egg-link files which point to openstack client project folders...

How can I run Openstack devstack in my ASUS chromebook?

ubuntu,openstack,devstack,chromebook,crouton-os

I feel this to be as SD card issue. Did you install ubuntu directly on your Chromebook SSD/SD?? The chances of this being openstack issue seems low....

Glance Failed to upload image (HTTP 500) and the image status is killed

image,image-uploading,openstack

Specify at least 'filesystem_store_datadir' or 'filesystem_store_datadirs' option above line shows that you should set file storing path in glance.conf. try checking it, and after you give directory, restart glance process....

Installing Windows 7 on Openstack - Can't find any compatible filesystem drivers or see any disk drives [closed]

windows,virtual-machine,driver,virtualization,openstack

You need VirtIO drivers. You will need to attach two devices to your volume, the iso for the OS, and the iso for these drivers. This should help http://docs.openstack.org/image-guide/content/windows-image.html Good luck....

Is it possible to measure the openstack load with ganglia monitoring system?

cloud,openstack,ganglia

technically, yes - although using it easily and "out of the box" with no twaeking might be troublesome. Adding a ganglia agent to each of your openstack compute nodes is where you'd want to start, and from there its very dependent on what openstack network configuration youre using and if...

Python-swiftclient: what is the general usage procedure?

python,openstack,openstack-swift

I have found the answer to my own question through a lot of trial and error. The main trap that I fell into was not providing the auth_version parameter to the Connection object. If the auth_version parameter is not provided, it defaults to 1.0, and the get_auth_1_0 method that is...

Can OpenStack be configured to start certain instances when the hypervisor reboots?

openstack,kvm,openstack-nova

There's this section in /etc/nova/nova.conf: # Whether to start guests that were running before the host # rebooted (boolean value) #resume_guests_state_on_host_boot=false If you uncomment that last line, and change it to =true, then restart nova services everywhere, that should do what you want....

Machine has been started with not enough memory

openstack,cloudify

ok, there's sometimes a difference that can be explained but 995MB is considerably less than 4GB, so let's clarify: do you run multiple services on the same machine? please run 'cat /proc/meminfo' on the machine to verify the exact memory it has In principle, you should not comment out any...

Is CloudFoundry compatible with Docker/CoreOS?

docker,openstack,cloudfoundry,openstack-nova,coreos

Cloud Foundry is installed using a specialised tool called Bosh. It has support for Openstack and I think would require deployment using Ubuntu VMs (open to correction on this point). Cloud Foundry has not integrated Docker yet, that is coming in the next version, google "Cloud Foundry" and "Diego". maybe...

Error on bootstrap of Management VM

openstack,cloudify

The ESM is Cloudify's Orchestrator. Only one instance of it should be running at any one time. The error indicates that the boostrap process was expecting to find a running ESM, but did not find one. This seems to be related to communication errors between the manager instances - is...

Xargs with command that has multiple parameters

linux,bash,openstack,xargs

You can use the -I option for xargs: nova list | grep SHUTOFF | cut '-d|' -f3 | xargs -I '{}' bash -c 'nova start {}' Alternatively you can loop over the results: for i in $(nova list | grep SHUTOFF | cut '-d|' -f3); do nova start $i; done...

Cloudfoundry Installation

installation,openstack,cloudfoundry

Anu, installing CF on OpenStack is not trivial, especially if you are looking to do more than just spin up a test environment. If you want to do this on your own, for production be sure to understand what you are doing by reading all of the documents and get...

Create an instance from volume in openstach with python-novaclient

python,openstack,novaclient,openstack-cinder

I was able to get it to work by using this dictionary: block_dev_mapping = {'vda':'uuid of the volume you want to use'} I then called it in the create method like this: instance = nova.servers.create(name="python-test3", image='', block_device_mapping=block_dev_mapping, flavor=flavor, key_name="my-keypair", nics=nics) ...

is it possible to get a list of all database servers that are available in the openstack cloud using jclouds?

java,cloud,openstack,jclouds

In this case I think you'll need to use a naming convention for your VMs running databases. e.g. db-mysql or db-mongo Then you can list the servers and iterate over the results to check for VMs that what with the db- prefix. If you're using the ComputeService, you could use...

Creating glance image 403 forbidden access

openstack

I suggest you should remove "-is-public true" from your command line for check your account policy.

python and PEP 440 - what is this? [closed]

python,openstack,devstack

As an end user, this shouldn't be a serious concern for you, it just means that, since the version number specified doesn't agree with the rules for python package versions, that the python packaging system cannot reliably discern which other versions of this package are before or after it. In...

Anyone know what's the data source of http://logstash.openstack.org?

logstash,openstack,kibana

According to this: Openstack Jenkins Logstash, those are the logs generated from Jenkins test runs. It is tool to check Openstack's packages building process and also showcases how Logstash works. If you are interested on installing something similar, take a look on these three: logstash kibana.org elasticsearch ...

OpenStack API token lifespan extension

openstack,openstack-horizon

You may want to take a look at the solutions used by Heat, the OpenStack orchestration engine. Heat needs to be able to execute actions on behalf of a user at some point in the future. Heat cannot simply store a token because, as you have stated, tokens expire. Heat...

How to Check whether dhcp-server exists for that subnet before creating a subnet

openstack,openstack-neutron

Try dhcp-discover Sends a DHCPINFORM request to a host on UDP port 67 to obtain all the local configuration parameters without allocating a new address. DHCPINFORM is a DHCP request that returns useful information from a DHCP server, without allocating an IP address. The request sends a list of which...

MySQL and Openstack Need some query advice

mysql,sql,openstack

Brent, The problem we're having answering this question is that we don't understand what data in nova.instances matches data neutron.ports. From your attempts it looks like you expect nova.instances.uuid to match up to neutron.ports.device_id. If that is the case, your first query should work. Can you provide some sample data...

Openstack cloud billing software list

cloud,openstack,saas,billing

You can try HostBill. It has most of the features you need.

How to conditionally check the state of an openstack instance

cloud,state,conditional-statements,ansible,openstack

I'm not familiar with the openstack tasks, but it looks like this shouldn't be terribly difficult to do. First off, if all you want to do is terminate all your instances and you're getting an error because some already don't exist then simply ignoring errors might suffice: - nova_compute name:...

Partition Accounts/Users under an Openstack tenant

openstack,rackspace-cloud,rackspace

Creating subusers and using Role Based Access Control (RBAC) for the Rackspace Cloud should meet your requirements. http://www.rackspace.com/knowledge_center/article/overview-role-based-access-control-rbac...

How can I import my own pre-built VM images into Bluemix?

virtual-machine,openstack,bluemix

I learned that it is possible to upload my own VM images to in creating virtual machines on Bluemix. Since the Virtual Machines on Bluemix is running on Openstack you can bring any image that works to Openstack to Virtual Machines on Bluemix. Use the following steps: In the Bluemix...

Issue in starting OPenstack Nova while installing using devstack

python,openstack,lxc,openstack-nova,devstack

It looks like you are using the nova-compute-flex driver, which is neither (a) an official OpenStack project or (b) included by default in devstack. Looking at the error: TRACE nova.virt.driver from nova import processutils TRACE nova.virt.driver ImportError: cannot import name processutils It seems like a bug in the flex driver....

Authentication SAIO (swift all in one) using libCurl API in C++

c++,curl,libcurl,openstack,openstack-swift

Append --libcurl code.c to your command line and you'll get a fine first template to start off from! CURLOPT_HTTPHEADER is the option to curl_easy_setopt you need. See also httpcustomheader.c for a full libcurl example using custom HTTP headers....

Restarting a service in Openstack installed using Devstack

openstack,devstack

When ./stack.sh completes, openstack is ostensibly running. as your stack user, you can then issue this command: screen -dr this should open up a screen session with windows for each of the services. the services are running from those screen terminal sessions or ptys. you can simply kill the process...

Failed to add image. Got error: openstack glance

python,ubuntu-12.04,openstack

One of these options should work: The command argument names should use underscores (_) instead of dashes (-): glance add name="CirrOS 0.3.1" disk_format=qcow2 container_format=bare is_public=true < cirros-0.3.1-x86_64-disk.img Alternatively it might be that the command arguments need to be prefixed with --: glance add --name="CirrOS 0.3.1" --disk-format=qcow2 --container-format=bare --is-public=true < cirros-0.3.1-x86_64-disk.img...

OpenStack Designate: '_AuthTokenPlugin' has no attribute 'register_conf_options'

python,openstack,keystone

Unfortunately those docs are very out of date. :( They should work for the most part though. I just ran through them on a Trusty VM, and it seemed to work for me. The current docs are here - http://docs.openstack.org/developer/designate/ It could be an incompatibility between the version of other...

clone a branch from GIT

git,openstack

You don't clone a branch, you clone an entire project: $ git clone git://github.com/openstack/neutron Cloning into 'neutron'... remote: Counting objects: 105856, done. remote: Total 105856 (delta 0), reused 0 (delta 0) Receiving objects: 100% (105856/105856), 44.17 MiB | 1.06 MiB/s, done. Resolving deltas: 100% (68444/68444), done. After doing that, you...

creating rings with regions openstack swift

openstack,regions,openstack-swift

I solved the problem. I actually had installed swift from ubuntu repositories on Ubuntu 12.04. The problem is that only swift 1.4.8 is supported from ubuntu repositories. To upgrade to the latest version, run the commands sudo add-apt-repository cloud-archive:icehouse and then, sudo apt-get dist-upgrade && sudo apt-get update

403 error in Rally Openstack

openstack

Solved, The issue is that I created external network and subnet as admin tenant and even though I was sourced as admin while running Rally I had forgotten to put "shared" while creating external network. Note: If you have multiple networks then only one network could be "shared" and it's...

How do I make floating ip pools available in OpenStack?

openstack,openstack-nova

It appears that the folks who setup the OpenStack instance are using neutron to manage networking so "neutron floatingip-create" seems to have worked.

Changing root password in of Virtual Machine KVM

linux,security,virtual-machine,virtualization,openstack

If you turn off your virtal machine, all you have is the whole "virtual hard drive" file on "real hard drive" in a real machine. It's a common file system that can be parsed and managed from outside with no problem (unless it is encrypted). So there's no reason for...

Openflow and nginx webserver

nginx,openstack

Neutron has been designed to cater to openstack's l2 and l3 needs alone. If you are looking for deploying other services you should take a look at the heat project.

Setup public rule in keystone policy file

openstack,keystone

Well, after lots of testing and googling the answer is no, it is not possible. To list roles, you mast be an admin in keystone v2 api and also within the same scope in v3. Also I was testing on the v2 api while posting this question. V2 ignores the...

Kitchen Open Stack gives “excon.error.response”

chef,openstack,test-kitchen

I had same problem. try openstack_auth_url: http://openstack_controller:35357/v2.0/ or http://openstack_controller:5000/v2.0/tokens it worked for me :)...

Connection to neutron failed: Maximum attempts reached

openstack,icehouse

I was having the same problem. Make sure that Neutron is actually running: service neutron-server status If it's not running: service neutron-server start ...

OpenStack Installation without virtualbox

openstack

There is a possibility of installing openstack(both 2 and 3 node architectures) in a single system. But, things are to be considered. Like the performance of the system used, the primary memory associated with it, the secondary memory that is available, e.t.c

Accessing the Openstack API in Bluemix

virtual-machine,openstack,bluemix

You need to login using the OpenStack credentials, not your Bluemix ID. To see those credentials, in the Bluemix dashboard, go to Mange Organization > Manage Infrastructure, and select Show Credentials. It will display data that looks something like this: { "auth_url": "https://keystone2.open.ibmcloud.com", "tenant": "TENANT", "credentials": { "username": "USER", "password":...

Ceilometer rest api, only most recent results?

rest,openstack,ceilometer

there is a limit parameter you can pass in: http://docs.openstack.org/developer/ceilometer/webapi/v2.html#get--v2-meters-(meter_name) as a sidenote, you can also ask questions to openstack-dev and openstack-operators mailing lists...

OpenStack API Implementations

virtualization,openstack,openstack-nova,openstack-neutron,cloud-platform

Not quite. Installs as an executable application on 1+ virtual machines (guest VMs); and OpenStack isn't a single executable, there are many different modules, some required and some optional. You can install OpenStack on a VM (see DevStack, a distro that is friendly to VMs) but that is not the...

Not able to connect to a Openstack Instance from external machine

networking,openstack

This may help you: http://www.liquidstate.net/blog/technology/openstack-havana-home-lab-on-centos6-with-external-networking/ Basically, you need a virtual router to connect from you LAN to OpenStack private network. I think, you don't need a Floating IP exactly on each instance. Only a virtual router, then you can create a static route on each machine in you LAN, for...

how to perform a bulk-delete in OpenStack Swift

delete,http-post,openstack

The URI for sending the request should not include the name of the container. Also, there are two problems with the request body you are sending. Do not encode the / character between the container name and the object name. Do not encode the newline characters. The algorithm to produce...

Use OpenStack4j in an OSGi platform

osgi,openstack

I fear there is no simple solution for your issue. Regarding to the sources, the HttpExecutor is looking for a HttpExecutorService via the ServiceLoader. This most likely doesn't work as the ServiceLoader doesn't know anything about BundleClassloaders, and since your instantiating it from your Bundle it most likely is lacking...

Choose a specific network among multiple networks

openstack,cloudify

The Cloudify shell just needs access to the Cloud API. It does not matter if it is connected to one network or more. It is not related to how the Cloudify Manager is set up. The Cloudify compute template configuration allows you to specify static networks that the compute machine...

What password or key does salt-cloud use to login to a newly created OpenStack VM minion?

openstack,rackspace-cloud,salt-stack

So I worked it out myself. The answer is it used password authentication. I created a vm with debug level logging and the generated password is output. salt-cloud --log-level debug -p profile vmname &> outputfile Searching the output file gave this line: ... 221 [DEBUG ] Using ************ as the...

The sequence of setting up keystone v3?

openstack,keystone

Both are doing the same thing but as you note, in a different order. The order doesn't matter as long as both the database and policy.json are updated. However you can see from the domains discussion that you may not get all the features in the dashboard for example with...

How to write a REST web service using Apache jclouds

rest,openstack,jclouds

You wouldn't actually use jclouds to write a web service. It's probably best to use a JAX-RS based framework like Jersey or RESTEasy to write a REST web service. jclouds is effectively for reading cloud web services. To list the number of virtual machines running on OpenStack, have a look...

urlsplit error during novaclient authentication

python,openstack,novaclient

You have some errors in your code. Take a closer look at the api documentation. If you call: nova = Client(2, sess) Then sess isn't getting passes to the session keyword parameter. You want: nova = Client(2, session=sess) And you don't need to call nova.authenticate()....

Openstack. Allocate more ram to guest

openstack,openstack-nova,openstack-horizon

So the problem was that the installation installs openstack in LXC, and in that container a VM is created for the compute node using libvirt, and this VM only had 4GB memory. I was able to expand it using this guide http://earlruby.org/2014/05/increase-a-vms-available-memory-with-virsh/

Openstack token, I can get token with curl but can't with urllib

curl,urllib,openstack

X-Storage-Token is in the header, not in the body. Try token = response.getheader('X-Storage-Token')...

Get CPU, memory and HDD info of a host with the OpenStack Python API

python,api,openstack

I managed to solve my problem. I'd like to share my step-by-step solution because it could help others beginners like me. Check network requests with tcpdump Using tcpdump I managed to see the request my program was sending and also get the full response. tcpdump -A -i lo -n "src...

Openstack.Net SDK cannot access service with region

c#,openstack,rackspace-cloud,keystone,openstacknetsdk

I managed to extend the functionality of the Openstack.Net SDK fairly simply. The code below extends it to include various functions for Tenant/Project manipulations... Firstly, create a NewTenant container that will be used to pass data to and from the webservices, I've put it in the same namespace as the...

OpenStack Notification Service: Marconi

openstack

The Marconi project (API v1) does not currently support Push technology, including long-polling. Depending on how your subscriber processes messages that appear in the queue, you will need to poll the service at an appropriate interval using either the List Messages or Claim Messages requests. Keep in mind that polling...

Couldnt install Openstack-Devstack on DigitalOcean

django,openstack,digital-ocean,devstack,openstack-horizon

You probably run out of RAM. Try adding swap. https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

Openstack Heat & Ansible. VM spinup and App deployment

ansible,openstack

One options is to create a dynamic inventory script that will fetch the instance ips from Heat and make them available to Ansible. Consider a Heat template that looks like this: heat_template_version: 2014-10-16 resources: nodes: type: OS::Heat::ResourceGroup properties: count: 3 resource_def: type: node.yaml outputs: nodes: value: {get_attr: [nodes, public_ip]} This...

Permission denied ubuntu with sudo access [closed]

ubuntu,openstack,juno

That's because the redirection > doesn't have privileges. Try instead: sudo sh -c 'echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu" \ "trusty-updates/juno main" > /etc/apt/sources.list.d/cloudarchive-juno.list' In this way, the whole command has privileges....

“zypper install python-mysqldb mysql-server” Packages not found

python,mysql,openstack,opensuse,zypper

I believe OpenSuSE is using mariadb, try: zypper in mariadb python-mysql You might find useful information on the OpenSuSE openstack development page, and in the openstack docs respectively: https://en.opensuse.org/Portal:OpenStack http://docs.openstack.org/havana/install-guide/install/zypper/content/...