[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15927680#comment-15927680
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9811:
--------------------------------------------

Github user borisstoyanov commented on the issue:

    https://github.com/apache/cloudstack/pull/2003
  
    Thanks @ustcweizhou 
    here's the StartCommand log
    ```
    2017-03-16 08:48:46,068 DEBUG [cloud.agent.Agent] 
(agentRequest-Handler-3:null) (logid:be1f1987) Request:Seq 
1-2088825802169778189:  { Cmd , MgmtId: 6629449860900, via: 1, Ver: v1, Flags: 
100011, 
[{"com.cloud.agent.api.StartCommand":{"vm":{"id":5,"name":"r-5-VM","type":"DomainRouter","cpus":1,"minSpeed":250,"maxSpeed":500,"minRam":268435456,"maxRam":268435456,"arch":"x86_64","os":"Debian
 GNU/Linux 5.0 (64-bit)","platformEmulator":"Debian GNU/Linux 5","bootArgs":" 
template=domP name=r-5-VM eth2ip=10.1.35.83 eth2mask=255.255.224.0 
gateway=10.1.63.254 eth0ip=10.1.1.1 eth0mask=255.255.255.0 
domain=cs2cloud.internal cidrsize=24 dhcprange=10.1.1.1 eth1ip=169.254.2.157 
eth1mask=255.255.0.0 type=router disable_rp_filter=true dns1=8.8.8.8 
dns2=8.8.4.4 
baremetalnotificationsecuritykey=QtUSkBDvXbuIN02ekUDrlpkmPzc5XXTVAOV1_L3Nvozwp46Xyq7PnGvYYiPWctsrMj2cgIIxFIUzXOXLntsomA
 
baremetalnotificationapikey=3cvNCQ5aBbRVT2a1vjuO0WKF3cELdiS86t_J_5GJnpPTobkyHZPjmxIKuDNHZHRpzfWooLi6pms0QPiEhpiq5A
 host=10.2.2.44 
port=8080","enableHA":true,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"aFTlD_W3vJCMrO9fjc_GFA","params":{"cpuOvercommitRatio":"2.0","memoryOvercommitRatio":"1.0"},"uuid":"469106c8-107d-46b9-9bd0-237221c97ffe","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"2844d31e-edd9-40a1-8e2d-0394df1b2d1d","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"a86067db-e2df-3c95-819c-254d6d60f4bd","id":2,"poolType":"NetworkFilesystem","host":"10.2.0.16","path":"/acs/primary/ref-trl-106-k-cs410-bstoyanov/ref-trl-106-k-cs410-bstoyanov-kvm-pri2","port":2049,"url":"NetworkFilesystem://10.2.0.16/acs/primary/ref-trl-106-k-cs410-bstoyanov/ref-trl-106-k-cs410-bstoyanov-kvm-pri2/?ROLE=Primary&STOREUUID=a86067db-e2df-3c95-819c-254d6d60f4bd","isManaged":false}},"name":"ROOT-5","size":348984320,"path":"2844d31e-edd9-40a1-8e2d-0394df1b2d1d","volumeId":5,"vmName":"r-5-VM","accountId":2,"format":"QCOW2","provisioningType":"THIN","id":5,"deviceId":0,"bytesReadRate":0,"bytesWriteRate":0,"iopsReadRate":0,"iopsWriteRate":0,"hypervisorType":"KVM"}},"diskSeq":0,"path":"2844d31e-edd9-40a1-8e2d-0394df1b2d1d","type":"ROOT","_details":{"storageHost":"10.2.0.16","managed":"false","storagePort":"2049","volumeSize":"348984320"}}],"nics":[{"deviceId":2,"networkRateMbps":200,"defaultNic":true,"pxeDisable":true,"nicUuid":"8bc36a5d-e51a-4f93-b764-89d452a89617","uuid":"268a2858-a1ac-4aec-aa3f-365c4ea97d18","ip":"10.1.35.83","netmask":"255.255.224.0","gateway":"10.1.63.254","mac":"06:17:c6:00:00:03","dns1":"8.8.8.8","dns2":"8.8.4.4","broadcastType":"Vlan","type":"Public","broadcastUri":"vlan://7","isolationUri":"vlan://7","isSecurityGroupEnabled":false,"name":"cloudbr1"},{"deviceId":0,"networkRateMbps":200,"defaultNic":false,"pxeDisable":true,"nicUuid":"cf5bcb72-96e2-47a2-a5b2-9187d8922ae5","uuid":"9046a22a-ac92-45c9-9757-107ca10e38d4","ip":"10.1.1.1","netmask":"255.255.255.0","mac":"02:00:46:fd:00:03","dns1":"8.8.8.8","dns2":"8.8.4.4","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://884","isolationUri":"vlan://884","isSecurityGroupEnabled":false,"name":"cloudbr1"},{"deviceId":1,"networkRateMbps":-1,"defaultNic":false,"pxeDisable":true,"nicUuid":"8cc9d552-6238-4add-9497-9b3d61ca938a","uuid":"9a24aaa5-e041-460c-9954-660fb4a41404","ip":"169.254.2.157","netmask":"255.255.0.0","gateway":"169.254.0.1","mac":"0e:00:a9:fe:02:9d","broadcastType":"LinkLocal","type":"Control","isSecurityGroupEnabled":false}]},"hostIp":"10.2.5.1","executeInSequence":false,"wait":0}},{"com.cloud.agent.api.check.CheckSshCommand":{"ip":"169.254.2.157","port":3922,"interval":6,"retries":100,"name":"r-5-VM","wait":0}},{"com.cloud.agent.api.GetDomRVersionCmd":{"accessDetails":{"router.ip":"169.254.2.157","router.name":"r-5-VM"},"wait":0}},{},{"com.cloud.agent.api.routing.AggregationControlCommand":{"action":"Start","accessDetails":{"router.guest.ip":"10.1.1.1","router.ip":"169.254.2.157","router.name":"r-5-VM"},"wait":0}},{"com.cloud.agent.api.routing.IpAssocCommand":{"ipAddresses":[{"accountId":2,"publicIp":"10.1.35.83","sourceNat":true,"add":true,"oneToOneNat":false,"firstIP":true,"broadcastUri":"vlan://7","vlanGateway":"10.1.63.254","vlanNetmask":"255.255.224.0","vifMacAddress":"06:b5:28:00:00:03","networkRate":200,"trafficType":"Public","networkName":"cloudbr1","newNic":false}],"accessDetails":{"router.guest.ip":"10.1.1.1","router.ip":"169.254.2.157","zone.network.type":"Advanced","router.name":"r-5-VM"},"wait":0}},{"com.cloud.agent.api.routing.SetMonitorServiceCommand":{"services":[{"id":0,"service":"dhcp","processname":"dnsmasq","serviceName":"dnsmasq","servicePath":"/var/run/dnsmasq/dnsmasq.pid","pidFile":"/var/run/dnsmasq/dnsmasq.pid","isDefault":false},{"id":0,"service":"loadbalancing","processname":"haproxy","serviceName":"haproxy","servicePath":"/var/run/haproxy.pid","pidFile":"/var/run/haproxy.pid","isDefault":false},{"id":0,"service":"ssh","processname":"sshd","serviceName":"ssh","servicePath":"/var/run/sshd.pid","pidFile":"/var/run/sshd.pid","isDefault":true},{"id":0,"service":"webserver","processname":"apache2","serviceName":"apache2","servicePath":"/var/run/apache2.pid","pidFile":"/var/run/apache2.pid","isDefault":true}],"accessDetails":{"router.guest.ip":"10.1.1.1","router.ip":"169.254.2.157","router.name":"r-5-VM"},"wait":0}},{"com.cloud.agent.api.routing.DhcpEntryCommand":{"vmMac":"02:00:36:d3:00:01","vmIpAddress":"10.1.1.213","vmName":"VM-3037a6ae-589d-4aa1-8d82-e2e0f2eb25e7","defaultRouter":"10.1.1.1","defaultDns":"10.1.1.1","duid":"00:03:00:01:02:00:36:d3:00:01","isDefault":true,"executeInSequence":false,"accessDetails":{"router.guest.ip":"10.1.1.1","router.ip":"169.254.2.157","zone.network.type":"Advanced","router.name":"r-5-VM"},"wait":0}},{"com.cloud.agent.api.routing.VmDataCommand":{"vmIpAddress":"10.1.1.213","vmName":"VM-3037a6ae-589d-4aa1-8d82-e2e0f2eb25e7","executeInSequence":false,"accessDetails":{"router.guest.ip":"10.1.1.1","router.ip":"169.254.2.157","zone.network.type":"Advanced","router.name":"r-5-VM"},"wait":0}},{"com.cloud.agent.api.routing.AggregationControlCommand":{"action":"Finish","accessDetails":{"router.guest.ip":"10.1.1.1","router.ip":"169.254.2.157","router.name":"r-5-VM"},"wait":0}}]
 }
    ```
    agent.properties:
    ```
    [root@PhysHost1 ~]# cat /etc/cloudstack/agent/agent.properties
    #Storage
    #Thu Mar 16 08:48:14 UTC 2017
    guest.network.device=cloudbr1
    workers=5
    private.network.device=cloudbr0
    port=8250
    resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
    pod=1
    zone=1
    guid=998db015-e979-374e-b827-7ff433df0757
    hypervisor.type=kvm
    cluster=1
    public.network.device=cloudbr1
    local.storage.uuid=cd74b728-5a19-48bc-979f-b12630119586
    domr.scripts.dir=scripts/network/domr/kvm
    host=10.2.2.44
    LibvirtComputingResource.id=1
    ```
    
    Bridge info:
    ```
    [root@PhysHost1 ~]# brctl show
    bridge name bridge id               STP enabled     interfaces
    brp55p1-7           8000.001517d6ba17       no              p55p1.7
                                                        vnet2
                                                        vnet3
    brp55p1-884         8000.001517d6ba17       no              p55p1.884
                                                        vnet0
    cloud0              8000.fe00a9fe029d       no              vnet1
    cloudbr0            8000.00266cfe085d       no              eth1
    cloudbr1            8000.001517d6ba17       no              p55p1
    virbr0              8000.525400250f61       yes             virbr0-nic
    ```
    
    dumpxml output:
    ```
    virsh # dumpxml 2
    <domain type='kvm' id='2'>
      <name>r-5-VM</name>
      <uuid>469106c8-107d-46b9-9bd0-237221c97ffe</uuid>
      <description>Debian GNU/Linux 5.0 (64-bit)</description>
      <memory unit='KiB'>262144</memory>
      <currentMemory unit='KiB'>262144</currentMemory>
      <vcpu placement='static'>1</vcpu>
      <cputune>
        <shares>250</shares>
      </cputune>
      <sysinfo type='smbios'>
        <system>
          <entry name='manufacturer'>Apache Software Foundation</entry>
          <entry name='product'>CloudStack KVM Hypervisor</entry>
          <entry name='uuid'>469106c8-107d-46b9-9bd0-237221c97ffe</entry>
        </system>
      </sysinfo>
      <os>
        <type arch='x86_64' machine='rhel6.6.0'>hvm</type>
        <boot dev='cdrom'/>
        <boot dev='hd'/>
        <smbios mode='sysinfo'/>
      </os>
      <features>
        <acpi/>
        <apic/>
        <pae/>
      </features>
      <cpu>
      </cpu>
      <clock offset='utc'>
        <timer name='kvmclock'/>
      </clock>
      <on_poweroff>destroy</on_poweroff>
      <on_reboot>restart</on_reboot>
      <on_crash>destroy</on_crash>
      <devices>
        <emulator>/usr/libexec/qemu-kvm</emulator>
        <disk type='file' device='disk'>
          <driver name='qemu' type='qcow2' cache='none'/>
          <source 
file='/mnt/a86067db-e2df-3c95-819c-254d6d60f4bd/2844d31e-edd9-40a1-8e2d-0394df1b2d1d'/>
          <target dev='vda' bus='virtio'/>
          <serial>2844d31eedd940a18e2d</serial>
          <alias name='virtio-disk0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x07' 
function='0x0'/>
        </disk>
        <disk type='file' device='cdrom'>
          <driver name='qemu' type='raw' cache='none'/>
          <source file='/usr/share/cloudstack-common/vms/systemvm.iso'/>
          <target dev='hdc' bus='ide'/>
          <readonly/>
          <alias name='ide0-1-0'/>
          <address type='drive' controller='0' bus='1' target='0' unit='0'/>
        </disk>
        <controller type='usb' index='0'>
          <alias name='usb0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x2'/>
        </controller>
        <controller type='ide' index='0'>
          <alias name='ide0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x1'/>
        </controller>
        <controller type='virtio-serial' index='0'>
          <alias name='virtio-serial0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x06' 
function='0x0'/>
        </controller>
        <interface type='bridge'>
          <mac address='02:00:46:fd:00:03'/>
          <source bridge='brp55p1-884'/>
          <target dev='vnet0'/>
          <model type='virtio'/>
          <alias name='net0'/>
          <rom bar='off' file=''/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 
function='0x0'/>
        </interface>
        <interface type='bridge'>
          <mac address='0e:00:a9:fe:02:9d'/>
          <source bridge='cloud0'/>
          <target dev='vnet1'/>
          <model type='virtio'/>
          <alias name='net1'/>
          <rom bar='off' file=''/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x04' 
function='0x0'/>
        </interface>
        <interface type='bridge'>
          <mac address='06:17:c6:00:00:03'/>
          <source bridge='brp55p1-7'/>
          <target dev='vnet2'/>
          <model type='virtio'/>
          <alias name='net2'/>
          <rom bar='off' file=''/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x05' 
function='0x0'/>
        </interface>
        <interface type='bridge'>
          <mac address='06:b5:28:00:00:03'/>
          <source bridge='brp55p1-7'/>
          <target dev='vnet3'/>
          <model type='virtio'/>
          <alias name='net3'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x08' 
function='0x0'/>
        </interface>
        <serial type='pty'>
          <source path='/dev/pts/0'/>
          <target port='0'/>
          <alias name='serial0'/>
        </serial>
        <console type='pty' tty='/dev/pts/0'>
          <source path='/dev/pts/0'/>
          <target type='serial' port='0'/>
          <alias name='serial0'/>
        </console>
        <channel type='unix'>
          <source mode='bind' path='/var/lib/libvirt/qemu/r-5-VM.agent'/>
          <target type='virtio' name='r-5-VM.vport'/>
          <alias name='channel0'/>
          <address type='virtio-serial' controller='0' bus='0' port='1'/>
        </channel>
        <channel type='unix'>
          <source mode='bind' 
path='/var/lib/libvirt/qemu/r-5-VM.org.qemu.guest_agent.0'/>
          <target type='virtio' name='org.qemu.guest_agent.0'/>
          <alias name='channel1'/>
          <address type='virtio-serial' controller='0' bus='0' port='2'/>
        </channel>
        <input type='tablet' bus='usb'>
          <alias name='input0'/>
        </input>
        <input type='mouse' bus='ps2'/>
        <graphics type='vnc' port='5900' autoport='yes' listen='10.2.5.1'>
          <listen type='address' address='10.2.5.1'/>
        </graphics>
        <video>
          <model type='cirrus' vram='9216' heads='1'/>
          <alias name='video0'/>
          <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 
function='0x0'/>
        </video>
        <memballoon model='none'>
          <alias name='balloon0'/>
        </memballoon>
      </devices>
    </domain>
    ```


> VR will not start, looking to configure eth3 while no such device exists on 
> the VR. On KVM-CentOS6.8 physical host
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9811
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9811
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Virtual Router
>    Affects Versions: 4.10.0.0
>            Reporter: Boris Stoyanov
>            Priority: Blocker
>         Attachments: agent.log, cloud.log, management.log
>
>
> This issue appears only on 4.10. When you add an instance with a new network 
> the VR starts and fails at the configuration point. Looks like it is looking 
> to configure eth3 adapter while no such device should be available on the VR. 
> The VR does not start and aborts the deployment of the VM. 
> Pease note that this issue was reproduced on physical KVM hosts in our lab.
> Hardware Hosts details:
> - 4x Dell C6100
> - Using: American Megatrends MegaRAC Baseboard Management (IPMI v2 compliant)
> OS:
> CentOS 6.8. 
> Management: 
> VM, running CentOS 6.8
> ACS version: 4.10 RC 1. SHA: 7c1d003b5269b375d87f4f6cfff8a144f0608b67
> In a nested virtualization environment it was working fine with CentOS6.8. 
> Attached are the management log and the cloud.log form the VR. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to