You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by jayapalu <gi...@git.apache.org> on 2016/01/28 12:31:15 UTC

[GitHub] cloudstack pull request: CLOUDSTACK-8324: config drive data set/ge...

GitHub user jayapalu opened a pull request:

    https://github.com/apache/cloudstack/pull/1379

    CLOUDSTACK-8324: config drive data set/get scripts for the guest vm

    Added the guest vm scripts for set/get the vm data, password and ssh keys

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jayapalu/cloudstack configdriveScripts

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1379.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1379
    
----
commit 6c8b7c03aaf7091a7de50c20846b2aef8789ebcb
Author: Jayapal <ja...@apache.org>
Date:   2016-01-28T11:21:13Z

    CLOUDSTACK-8324: config drive data set/get scripts for the guest vm

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8324: config drive data set/ge...

Posted by jayapalu <gi...@git.apache.org>.
Github user jayapalu commented on the pull request:

    https://github.com/apache/cloudstack/pull/1379#issuecomment-178400682
  
    I will add the suggested changes


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack issue #1379: CLOUDSTACK-8324: config drive data set/get scripts f...

Posted by bvbharatk <gi...@git.apache.org>.
Github user bvbharatk commented on the issue:

    https://github.com/apache/cloudstack/pull/1379
  
    Code changes look ok to me LGTM.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack issue #1379: CLOUDSTACK-8324: config drive data set/get scripts f...

Posted by kishankavala <gi...@git.apache.org>.
Github user kishankavala commented on the issue:

    https://github.com/apache/cloudstack/pull/1379
  
    LGTM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8324: config drive data set/ge...

Posted by rhtyd <gi...@git.apache.org>.
Github user rhtyd commented on the pull request:

    https://github.com/apache/cloudstack/pull/1379#issuecomment-216222040
  
    How do we test this, thanks


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8324: config drive data set/ge...

Posted by wido <gi...@git.apache.org>.
Github user wido commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1379#discussion_r51116786
  
    --- Diff: setup/bindir/cloud-set-guest-sshkey-configdrive.in ---
    @@ -0,0 +1,107 @@
    +#!/bin/bash
    +#
    +# Init file for SSH Public Keys Download Client
    +#
    +# chkconfig: 345 98 02
    +# description: SSH Public Keys Download Client
    +
    +# Licensed to the Apache Software Foundation (ASF) under one
    +# or more contributor license agreements.  See the NOTICE file
    +# distributed with this work for additional information
    +# regarding copyright ownership.  The ASF licenses this file
    +# to you under the Apache License, Version 2.0 (the
    +# "License"); you may not use this file except in compliance
    +# with the License.  You may obtain a copy of the License at
    +#
    +#   http://www.apache.org/licenses/LICENSE-2.0
    +#
    +# Unless required by applicable law or agreed to in writing,
    +# software distributed under the License is distributed on an
    +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +# KIND, either express or implied.  See the License for the
    +# specific language governing permissions and limitations
    +# under the License.
    +
    +
    +# Modify this line to specify the user (default is root)
    +user=root
    +
    +mountdir=/mnt/configdrive
    +
    --- End diff --
    
    Why a static directory? The danger exists that it is already there.
    
    Why not use mktemp?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request #1379: CLOUDSTACK-8324: config drive data set/get sc...

Posted by jayapalu <gi...@git.apache.org>.
Github user jayapalu commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1379#discussion_r101223426
  
    --- Diff: setup/bindir/cloud-set-guest-sshkey-configdrive.in ---
    @@ -0,0 +1,107 @@
    +#!/bin/bash
    +#
    +# Init file for SSH Public Keys Download Client
    +#
    +# chkconfig: 345 98 02
    +# description: SSH Public Keys Download Client
    +
    +# Licensed to the Apache Software Foundation (ASF) under one
    +# or more contributor license agreements.  See the NOTICE file
    +# distributed with this work for additional information
    +# regarding copyright ownership.  The ASF licenses this file
    +# to you under the Apache License, Version 2.0 (the
    +# "License"); you may not use this file except in compliance
    +# with the License.  You may obtain a copy of the License at
    +#
    +#   http://www.apache.org/licenses/LICENSE-2.0
    +#
    +# Unless required by applicable law or agreed to in writing,
    +# software distributed under the License is distributed on an
    +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +# KIND, either express or implied.  See the License for the
    +# specific language governing permissions and limitations
    +# under the License.
    +
    +
    +# Modify this line to specify the user (default is root)
    +user=root
    +
    +mountdir=/mnt/configdrive
    +
    +# If lable name is other than config, please change the below line as required
    +DefaultDisk=/dev/disk/by-label/config
    +
    +SSHKey_File=$mountdir/cloudstack/metadata/public_keys.txt
    +keys_received=0
    +
    +function prepare_mount
    +{
    +    if [ ! -e $mountdir ]; then
    +        mkdir $mountdir
    +        chmod 700 $mountdir
    +    fi
    +
    +    if [ -e $DefaultDisk ]; then
    +        Disk=$DefaultDisk
    +    else
    +        BLOCK_DEVICE=$(blkid -t LABEL='config' /dev/hd? /dev/sd? /dev/xvd? -o device)
    --- End diff --
    
    Updated the patch


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8324: config drive data set/ge...

Posted by bvbharatk <gi...@git.apache.org>.
Github user bvbharatk commented on the pull request:

    https://github.com/apache/cloudstack/pull/1379#issuecomment-197600578
  
    ### ACS CI BVT Run
     **Sumarry:**
     Build Number 104
     Hypervisor xenserver
     NetworkType Advanced
     Passed=104
     Failed=14
     Skipped=4
    
    **The follwing tests have known issues**
    test_vpc_remote_access_vpn
    test_vpc_site2site_vpn
    test_01_test_vm_volume_snapshot
    test_02_vpc_privategw_static_routes
    test_03_rvpc_privategw_static_routes
    test_04_change_offering_small
    ContextSuite context=TestNiciraContoller>:setup
    test_01_primary_storage_iscsi
    test02_internallb_haproxy_stats_on_all_interfaces
    test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80
    ContextSuite context=TestDeployVM>:setup
    test_04_extract_template
    test_04_extract_Iso
    test_07_list_default_iso
    
    
    _Link to logs Folder (search by build_no):_ https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0
    
    
    **Failed tests:**
    * integration.smoke.test_guest_vlan_range.TestDedicateGuestVlanRange
    
     * test_dedicateGuestVlanRange Failing since 4 runs
    
    * integration.smoke.test_vm_life_cycle.TestDeployVM
    
     * test_10_attachAndDetach_iso Failed
    
    
    **Skipped tests:**
    test_vm_nic_adapter_vmxnet3
    test_deploy_vgpu_enabled_vm
    test_06_copy_template
    test_06_copy_iso
    
    **Passed test suits:**
    integration.smoke.test_deploy_vm_with_userdata.TestDeployVmWithUserData
    integration.smoke.test_affinity_groups_projects.TestDeployVmWithAffinityGroup
    integration.smoke.test_portable_publicip.TestPortablePublicIPAcquire
    integration.smoke.test_over_provisioning.TestUpdateOverProvision
    integration.smoke.test_global_settings.TestUpdateConfigWithScope
    integration.smoke.test_scale_vm.TestScaleVm
    integration.smoke.test_service_offerings.TestCreateServiceOffering
    integration.smoke.test_loadbalance.TestLoadBalance
    integration.smoke.test_routers.TestRouterServices
    integration.smoke.test_reset_vm_on_reboot.TestResetVmOnReboot
    integration.smoke.test_snapshots.TestSnapshotRootDisk
    integration.smoke.test_deploy_vms_with_varied_deploymentplanners.TestDeployVmWithVariedPlanners
    integration.smoke.test_network.TestDeleteAccount
    integration.smoke.test_non_contigiousvlan.TestUpdatePhysicalNetwork
    integration.smoke.test_deploy_vm_iso.TestDeployVMFromISO
    integration.smoke.test_public_ip_range.TestDedicatePublicIPRange
    integration.smoke.test_multipleips_per_nic.TestDeployVM
    integration.smoke.test_regions.TestRegions
    integration.smoke.test_affinity_groups.TestDeployVmWithAffinityGroup
    integration.smoke.test_network_acl.TestNetworkACL
    integration.smoke.test_pvlan.TestPVLAN
    integration.smoke.test_volumes.TestCreateVolume
    integration.smoke.test_ssvm.TestSSVMs
    integration.smoke.test_nic.TestNic
    integration.smoke.test_deploy_vm_root_resize.TestDeployVM
    integration.smoke.test_resource_detail.TestResourceDetail
    integration.smoke.test_secondary_storage.TestSecStorageServices
    integration.smoke.test_disk_offerings.TestCreateDiskOffering


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack issue #1379: CLOUDSTACK-8324: config drive data set/get scripts f...

Posted by jayapalu <gi...@git.apache.org>.
Github user jayapalu commented on the issue:

    https://github.com/apache/cloudstack/pull/1379
  
    These scripts are for config drive feature.  Deploy vm in shared network without services then vm with config drive will be deployed. 
    Place these scripts in vm template to set VM password and ssh keys.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request #1379: CLOUDSTACK-8324: config drive data set/get sc...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cloudstack/pull/1379


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8324: config drive data set/ge...

Posted by wido <gi...@git.apache.org>.
Github user wido commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1379#discussion_r51116750
  
    --- Diff: setup/bindir/cloud-set-guest-sshkey-configdrive.in ---
    @@ -0,0 +1,107 @@
    +#!/bin/bash
    +#
    +# Init file for SSH Public Keys Download Client
    +#
    +# chkconfig: 345 98 02
    +# description: SSH Public Keys Download Client
    +
    +# Licensed to the Apache Software Foundation (ASF) under one
    +# or more contributor license agreements.  See the NOTICE file
    +# distributed with this work for additional information
    +# regarding copyright ownership.  The ASF licenses this file
    +# to you under the Apache License, Version 2.0 (the
    +# "License"); you may not use this file except in compliance
    +# with the License.  You may obtain a copy of the License at
    +#
    +#   http://www.apache.org/licenses/LICENSE-2.0
    +#
    +# Unless required by applicable law or agreed to in writing,
    +# software distributed under the License is distributed on an
    +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +# KIND, either express or implied.  See the License for the
    +# specific language governing permissions and limitations
    +# under the License.
    +
    +
    +# Modify this line to specify the user (default is root)
    +user=root
    +
    +mountdir=/mnt/configdrive
    +
    +# If lable name is other than config, please change the below line as required
    +DefaultDisk=/dev/disk/by-label/config
    +
    +SSHKey_File=$mountdir/cloudstack/metadata/public_keys.txt
    +keys_received=0
    +
    +function prepare_mount
    +{
    +    if [ ! -e $mountdir ]; then
    +        mkdir $mountdir
    +        chmod 700 $mountdir
    +    fi
    +
    +    if [ -e $DefaultDisk ]; then
    +        Disk=$DefaultDisk
    +    else
    +        BLOCK_DEVICE=$(blkid -t LABEL='config' /dev/hd? /dev/sd? /dev/xvd? -o device)
    --- End diff --
    
    Shouldn't this also look at /dev/vdX devices? VirtIO devices under KVM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack issue #1379: CLOUDSTACK-8324: config drive data set/get scripts f...

Posted by cloudmonger <gi...@git.apache.org>.
Github user cloudmonger commented on the issue:

    https://github.com/apache/cloudstack/pull/1379
  
    ### ACS CI BVT Run
     **Sumarry:**
     Build Number 362
     Hypervisor xenserver
     NetworkType Advanced
     Passed=105
     Failed=0
     Skipped=7
    
    _Link to logs Folder (search by build_no):_ https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0
    
    
    **Failed tests:**
    
    **Skipped tests:**
    test_01_test_vm_volume_snapshot
    test_vm_nic_adapter_vmxnet3
    test_static_role_account_acls
    test_11_ss_nfs_version_on_ssvm
    test_nested_virtualization_vmware
    test_3d_gpu_support
    test_deploy_vgpu_enabled_vm
    
    **Passed test suits:**
    test_deploy_vm_with_userdata.py
    test_affinity_groups_projects.py
    test_portable_publicip.py
    test_over_provisioning.py
    test_global_settings.py
    test_scale_vm.py
    test_service_offerings.py
    test_routers_iptables_default_policy.py
    test_loadbalance.py
    test_routers.py
    test_reset_vm_on_reboot.py
    test_deploy_vms_with_varied_deploymentplanners.py
    test_network.py
    test_router_dns.py
    test_non_contigiousvlan.py
    test_login.py
    test_deploy_vm_iso.py
    test_list_ids_parameter.py
    test_public_ip_range.py
    test_multipleips_per_nic.py
    test_regions.py
    test_affinity_groups.py
    test_network_acl.py
    test_pvlan.py
    test_volumes.py
    test_nic.py
    test_deploy_vm_root_resize.py
    test_resource_detail.py
    test_secondary_storage.py
    test_vm_life_cycle.py
    test_routers_network_ops.py
    test_disk_offerings.py


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack issue #1379: CLOUDSTACK-8324: config drive data set/get scripts f...

Posted by jayapalu <gi...@git.apache.org>.
Github user jayapalu commented on the issue:

    https://github.com/apache/cloudstack/pull/1379
  
    These scripts CI tests are not needed


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cloudstack pull request #1379: CLOUDSTACK-8324: config drive data set/get sc...

Posted by jayapalu <gi...@git.apache.org>.
Github user jayapalu commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1379#discussion_r101223451
  
    --- Diff: setup/bindir/cloud-set-guest-sshkey-configdrive.in ---
    @@ -0,0 +1,107 @@
    +#!/bin/bash
    +#
    +# Init file for SSH Public Keys Download Client
    +#
    +# chkconfig: 345 98 02
    +# description: SSH Public Keys Download Client
    +
    +# Licensed to the Apache Software Foundation (ASF) under one
    +# or more contributor license agreements.  See the NOTICE file
    +# distributed with this work for additional information
    +# regarding copyright ownership.  The ASF licenses this file
    +# to you under the Apache License, Version 2.0 (the
    +# "License"); you may not use this file except in compliance
    +# with the License.  You may obtain a copy of the License at
    +#
    +#   http://www.apache.org/licenses/LICENSE-2.0
    +#
    +# Unless required by applicable law or agreed to in writing,
    +# software distributed under the License is distributed on an
    +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +# KIND, either express or implied.  See the License for the
    +# specific language governing permissions and limitations
    +# under the License.
    +
    +
    +# Modify this line to specify the user (default is root)
    +user=root
    +
    +mountdir=/mnt/configdrive
    +
    --- End diff --
    
    Added mktemp


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---