Fix incorrect file path in pkggen.py

This patch fixes the path to userdata_standard.py and
container_update_mgmt_v2.py specified in pkggen.py
to the correct one below.

* userdata_standard.py
```
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir =
"../../../../../tacker/sol_refactored/infra_drivers/openstack/"
```

* container_update_mgmt_v2.py
```
mgmt_driver_path = os.path.join(
    cur_dir, '../../../../../tacker/sol_refactored',
    'mgmt_drivers/container_update_mgmt_v2.py')
```

Closes-Bug: #2074332
Change-Id: Iea5d417bba0e1f9a6518df59ced77d6e50ba34de
This commit is contained in:
Ai Hamano 2024-07-29 14:35:57 +09:00
parent 3aaa63e0c7
commit 6e9bfa93c7
13 changed files with 24 additions and 24 deletions

View File

@ -41,8 +41,8 @@ tmp_contents = os.path.join(tmp_dir, "contents")
shutil.copytree(os.path.join(".", "contents"), tmp_contents)
# add userdata script
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# tacker/tests/sol_refactored/infra_drivers/openstack/userdata_standard.py
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)
# mkdir UserData/ and copy userdata_path into it

View File

@ -31,7 +31,7 @@ vnfd_id = uuidutils.generate_uuid()
# samples/tests/functional/sol_kubernetes_v2/{package_name}
cur_dir = os.path.dirname(__file__)
mgmt_driver_path = os.path.join(
cur_dir, '../../../../tacker/sol_refactored',
cur_dir, '../../../../../tacker/sol_refactored',
'mgmt_drivers/container_update_mgmt_v2.py')
utils.make_zip(".", tmp_dir, vnfd_id, mgmt_driver=mgmt_driver_path)

View File

@ -31,7 +31,7 @@ vnfd_id = uuidutils.generate_uuid()
# samples/tests/functional/sol_kubernetes_v2/{package_name}
cur_dir = os.path.dirname(__file__)
mgmt_driver_path = os.path.join(
cur_dir, '../../../../tacker/sol_refactored',
cur_dir, '../../../../../tacker/sol_refactored',
'mgmt_drivers/container_update_mgmt_v2.py')
utils.make_zip(".", tmp_dir, vnfd_id, mgmt_driver=mgmt_driver_path)

View File

@ -33,8 +33,8 @@ image_path = test_utils.test_etc_sample("etsi/nfv/common/Files/images",
"cirros-0.5.2-x86_64-disk.img")
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)

View File

@ -29,8 +29,8 @@ zip_file_name = os.path.basename(os.path.abspath(".")) + '.zip'
tmp_dir = tempfile.mkdtemp()
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)

View File

@ -29,8 +29,8 @@ zip_file_name = os.path.basename(os.path.abspath(".")) + '.zip'
tmp_dir = tempfile.mkdtemp()
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)

View File

@ -33,8 +33,8 @@ image_path = test_utils.test_etc_sample("etsi/nfv/common/Files/images",
"cirros-0.5.2-x86_64-disk.img")
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)

View File

@ -33,8 +33,8 @@ image_path = test_utils.test_etc_sample("etsi/nfv/common/Files/images",
"cirros-0.5.2-x86_64-disk.img")
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)

View File

@ -33,8 +33,8 @@ image_path = test_utils.test_etc_sample("etsi/nfv/common/Files/images",
"cirros-0.5.2-x86_64-disk.img")
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)

View File

@ -33,8 +33,8 @@ image_path = test_utils.test_etc_sample("etsi/nfv/common/Files/images",
"cirros-0.5.2-x86_64-disk.img")
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)

View File

@ -33,8 +33,8 @@ image_path = test_utils.test_etc_sample("etsi/nfv/common/Files/images",
"cirros-0.5.2-x86_64-disk.img")
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)

View File

@ -33,8 +33,8 @@ image_path = test_utils.test_etc_sample("etsi/nfv/common/Files/images",
"cirros-0.5.2-x86_64-disk.img")
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)

View File

@ -33,8 +33,8 @@ image_path = test_utils.test_etc_sample("etsi/nfv/common/Files/images",
"cirros-0.5.2-x86_64-disk.img")
# tacker/sol_refactored/infra_drivers/openstack/userdata_standard.py
# samples/functional/sol_v2_common/sampleX
userdata_dir = "../../../../tacker/sol_refactored/infra_drivers/openstack/"
# samples/tests/functional/sol_v2_common/sampleX
userdata_dir = "../../../../../tacker/sol_refactored/infra_drivers/openstack/"
userdata_file = "userdata_standard.py"
userdata_path = os.path.abspath(userdata_dir + userdata_file)