Ask Your Question
0

ERROR: Remote error: CircularDependencyException Circular Dependency Found: {Server "boot_vol": {Server "boot_vol"}}

asked 2015-11-12 05:56:09 -0500

updated 2015-11-12 21:43:03 -0500

I am getting the below error ..

[root@node vaikanch]# heat stack-create -f image.yml -e vk.env vkos6test ERROR: Remote error: CircularDependencyException Circular Dependency Found: {Server "boot_vol": {Server "boot_vol"}} [root@node vaikanch ]#

image.yml file

heat_template_version: 2013-05-23

parameters:

flavor: type: string description: Flavor az: type: string description: Availability-zone

public_net: type: string description: ID of public network

private_net: type: string description: ID of public network

key_name: type: string description: public-Key

ImageID: type: string description: Image use to boot a server

host_name: type: string description: hostname for compute instance

resources:

server_port: type: OS::Neutron::Port properties: network_id: { get_param: private_net }

floating_ip: type: OS::Neutron::FloatingIP depends_on: [ server_port ] properties: floating_network_id: { get_param: public_net } port_id: { get_resource: server_port }

boot_vol: type: OS::Cinder::Volume properties: name : "vkos6" image : { get_param: ImageID } size : 10

type: OS::Nova::Server
depends_on: [ server_port ]
properties:
  flavor: { get_param: flavor }
  key_name: { get_param: key_name }
  block_device_mapping:
  - device_name: xvda
    volume_id: { get_resource: boot_vol }
  networks:
    - port: { get_resource: server_port }
  availability_zone: { get_param: az }
  user_data_format: RAW
  user_data: |
    #cloud-config
    ssh_pwauth: True
    disable_root: false
    bootcmd:
        - curl -L http://server.set.com/scripts/puppet-bootstrap.sh|bash

swap:

filename: /swap.img

size: 5242880

outputs:

floating_ip: value: {get_attr: [floating_ip, floating_ip_address]}

vk.env file

parameters:

public_net: 06f5f1fb-2344-41c0-907b-93effa08ef4f private_net: 37238408-bf23-4065-aa23-956947485e32

#boot_vol: dcb5266c-e9ba-4139-9e73-81702167f9ce ImageID : 9e2aaac4-010c-456f-b8ef-29f49212ec4f

flavor: 16GB_4CPU

az: nova

host_name: APOS6 key_name: vk_test1_key

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-11-12 23:41:57 -0500

I have fixed the issue and it was mistake on my part.

boot_vol: type: OS::Cinder::Volume properties: name : "vkos6" image : { get_param: ImageID } size : 10 *instance:*-- this was missing type: OS::Nova::Server depends_on: [ server_port ] properties: flavor: { get_param: flavor } key_name: { get_param: key_name } block_device_mapping: - device_name: xvda volume_id: { get_resource: boot_vol } networks: - port: { get_resource: server_port } availability_zone: { get_param: az } user_data_format: RAW user_data: | #cloud-config ssh_pwauth: True disable_root: false bootcmd: - curl -L http://server.set.com/scripts/puppet-...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-11-12 05:56:09 -0500

Seen: 289 times

Last updated: Nov 12 '15