Lines Matching defs:image
47 import pkg.client.image as image
141 # setup image names and paths
153 image if that object has been updated via a pkg(1) cli
161 """__img_children_names() - find the children of an image and
172 """__img_has_parent() - check if an image has a parent"""
184 "error: image has unexpected children\n"
185 "image: {0:d}, {1}, {2}\n"
197 "error: image has children\n"
198 "image: {0:d}, {1}, {2}\n"
207 "error: image has no parent\n"
208 "image: {0:d}, {1}, {2}\n".format(
214 "error: image has a parent\n"
215 "image: {0:d}, {1}, {2}\n".format(
483 # operations on the parent image
696 # try to link the parent image to a new child with a dup name
728 # by default we can't attach (p2c) zone image
733 # force attach (p2c) zone image
741 # by default we can't attach (c2p) zone image
746 # force attach (c2p) zone image
752 # by default we can't detach (c2p) zone image
757 # force detach (c2p) zone image
784 # empty the parent image
789 # delete the parent image
815 # corrupt the child image
818 image.img_user_prefix))
821 image.img_root_prefix))
823 # delete the child image
828 # delete the child image
893 """test --no-pkg-updates with an empty image."""
900 """test --no-pkg-updates with an empty image."""
915 """test --no-pkg-updates with an empty image."""
919 """test --no-pkg-updates with a non-empty image."""
922 # install different un-synced packages into each image
934 """test --no-pkg-updates with a non-empty image."""
937 # install different un-synced packages into each image
957 """test --no-pkg-updates with a non-empty image."""
964 # install the same synced packages into each image
979 # install the same synced packages into each image
1006 # install different synced packages into each image
1023 # install different synced packages into each image
1061 # install different un-synced packages into each image
1118 # install different synced package into each image
1187 # install different synced package into each image
1253 # install different synced package into each image
1270 """Verify that if we do a operation "op" on a child image, it
1275 image metadata in sync with the parent. 3 has its metadata
1284 # install synced package into each image
1291 # update the parent image while ignoring the children (there
1324 """Verify that if we do a operation "op" on a parent image, it
1328 children. 1 has its linked image metadata in sync with the
1329 parent. 2 has its linked image metadata out of in sync with
1333 Note that if the metadata in a child image is in sync with its
1337 occurs regardless of if the child image is actually in sync
1345 # install synced package into each image
1352 # update the parent image while ignoring the children (there
1378 # if the linked image metadata was changed during this
1380 # image metadata was not changed, we'll only have updated one
1638 # install synced package into each image
1643 # update parent image
1664 # the audit above should not have updated our image, so we
1697 # install synced package into each image
1735 # paths for the linked image metadata files
1745 # delete linked image metadata files
1756 # since we haven't modified the image, make sure the
1767 # since we haven't modified the image, make sure the
1812 # paths for the linked image metadata files
1821 # delete linked image metadata files
1831 # since we haven't modified the image, make sure the
1842 # since we haven't modified the image, make sure the
2138 # with install to see if the image selection works correctly.
2215 # install synced package into each image
2240 # install synced package into each image
2264 # install synced package into each image
2289 # install synced package into each image
2533 # setup image names and paths
2640 # setup image names and paths
2786 # create image (0)
2789 # install a package with facets in the image
3011 parent image, the latest facet data still gets pushed out to
3019 parent image, the latest facet data still gets pushed out to
3026 """Verify that if we detach a child linked image, that any
3067 # (they can't get removed until we modify the image)
3112 # paths for the linked image metadata files
3118 # isntall foo into each image
3140 # delete linked image metadata files
3160 # since we haven't modified the image, make sure the
3298 # setup image names and paths
3311 """Verify that if we do a operation "op" on a child image, it
3317 # setup the parent image
3335 # setup the child image
3360 # verify the child image is still diverged
3391 image while inherited facets are changing."""
3419 image while inherited facets are changing."""
3447 image while inherited facets are changing."""
3477 image while inherited facets are changing."""
3503 image while inherited facets are changing."""
3529 image while inherited facets are changing."""
3556 image while inherited facets are changing."""
3578 """Verify that we can detach a child image which has inherited
3579 facets that when removed require updating the image."""
3584 # setup the parent image
3604 # setup the child image
3628 # verify the contents of the child image
3650 install hold relaxed if we expect to be able to bring the image in
3722 # setup image names and paths
3791 In our child image we'll install 3 packages, A, B, C, all at
3795 We will modify the child image without touching pkg B directly
3797 by allowing the image to be synced."""
3843 In our child image we'll install 4 packages, A, B, C, and BC,
3848 The child image is out of sync. we should be able to
3888 In our child image we'll install 4 packages, A, B, C, and BC,
3910 In our child image we'll install 1 package, B@1. pkg B has an
3912 dependency is disabled by a variant, so the image is in sync.
3924 """Test the scalability of the linked image subsystem."""
4000 For parallel linked image operations, 256 images is high
4028 # create an image with a synced package
4033 # create copies of the image.
4037 # attach the copies as children of the original image
4044 # update the parent image and all child images in parallel
4049 """Class to test linked image path management."""
4052 # linked image types
4059 # Linked image trees for testing.
4062 # child 1: parented to root image
4063 # child 2: parented to root image
4082 # Linked image child locations.
4091 # Linked image directory location vectors.
4092 # Location vectors consist of 5 image locations:
4093 # root image path
4191 # setup image names and paths
4219 # generate child image name based on the child image dir
4247 """Given a vector of linked image types and locations, return
4250 <image dir, image type, parent dir>
4257 # first image is always a parent
4274 # skip this image
4278 # add image to the list
4331 """Given an image path (ipath), verify that pkg list-linked
4332 displays the expected linked image paths (lipaths). The
4350 """Given an image path (ipath), verify that pkg
4351 property-linked displays the expected linked image properties.
4403 # create and link image tree
4438 # cleanup current image tree
4451 """You can't link images if the parent image is nested within
4463 """You can't link the liveroot image as a child."""
4481 """You can't link images if there are intermediate image in
4588 # setup image paths
4637 """Verify that all linked image paths reported by list-linked
4647 # setup image paths
4806 """If a parent image has no properties, then rather than
4809 each linked image plugin if it knows what the current path
4819 # setup image paths
4837 # now delete the global zone linked image metadata
4869 """Test that image object plan execution and re-initialization
4870 works when the image is moving around. This simulates an
4873 # setup image paths
4907 """Test what happens if we have a pull child image that gets
4908 moved but the parent image doesn't move."""
4910 # Setup image paths
4917 # Move the child image
4922 # sync the child image