)]}'
{"specs/liberty/loop-configdrive.rst":[{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"706d5566def47f374dbed6465a7111b7cf96c8fb","unresolved":false,"context_lines":[{"line_number":25,"context_line":"* Waste disk space to save small amount of data"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"* Primary partition is needed"},{"line_number":28,"context_line":"  For images like coreos, which already contains several primary partitions, "},{"line_number":29,"context_line":"  config drive partition creation will fail due to the total number of"},{"line_number":30,"context_line":"  primary partition is limited."},{"line_number":31,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aaa499b_4a5f8be5","line":28,"updated":"2015-04-14 03:17:14.000000000","message":"please remove the space.","commit_id":"9717411771dbbc6c409093fdfa190d038e4288e6"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"706d5566def47f374dbed6465a7111b7cf96c8fb","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"* For partition based qcow2 images (versus volume based images), the whole"},{"line_number":33,"context_line":"  physical disk will be used up although the original image is small, while"},{"line_number":34,"context_line":"  leave no space for configdrive partition."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"* See bug https://bugs.launchpad.net/ironic/+bug/1431527"},{"line_number":37,"context_line":"  \"IPA: creation of configdrive partition fails if MBR \u0026 disk\u003e2TB\""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aaa499b_6a680788","line":34,"updated":"2015-04-14 03:17:14.000000000","message":"s/leave/leaving/","commit_id":"9717411771dbbc6c409093fdfa190d038e4288e6"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"706d5566def47f374dbed6465a7111b7cf96c8fb","unresolved":false,"context_lines":[{"line_number":39,"context_line":"To solve this problem, we can store the configdrive iso somewhere in the"},{"line_number":40,"context_line":"file system after imaging is done, then add an entry in \"fstab\" to mount the"},{"line_number":41,"context_line":"iso as loop device. When the system is up, the configdrive iso will be mounted"},{"line_number":42,"context_line":"automatically, and cloud-init is able to detect the configdrive by "},{"line_number":43,"context_line":"\"config-2\" label."},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aaa499b_0a5983fe","line":42,"updated":"2015-04-14 03:17:14.000000000","message":"please remove the space.","commit_id":"9717411771dbbc6c409093fdfa190d038e4288e6"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"706d5566def47f374dbed6465a7111b7cf96c8fb","unresolved":false,"context_lines":[{"line_number":46,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"Users shall still have the option to use partition based configdrive or loop"},{"line_number":49,"context_line":"device basedconfig drive, so a service level configuration option shall be "},{"line_number":50,"context_line":"added in Ironic service, while IPA shall accept this option."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"When calling \"prepare_image\" API, the actual value of this option will be"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aaa499b_ea5bf7f4","line":49,"updated":"2015-04-14 03:17:14.000000000","message":"please remove the space.","commit_id":"9717411771dbbc6c409093fdfa190d038e4288e6"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"706d5566def47f374dbed6465a7111b7cf96c8fb","unresolved":false,"context_lines":[{"line_number":61,"context_line":"  try mounting the disk/parition"},{"line_number":62,"context_line":"* search for \"fstab\" file in the mounted disk/partition"},{"line_number":63,"context_line":"* if \"fstab\" file is found, make folder \"cloud/configdrive\" under the parent"},{"line_number":64,"context_line":"  folder of \"fstab\" to save the configdrive content, and create folder "},{"line_number":65,"context_line":"  \"cloud/cfgdrive_mnt\" as mount point"},{"line_number":66,"context_line":"* append an entry in \"fstab\" file, e.g."},{"line_number":67,"context_line":"  /etc/cloud/configdrive/config.disk /etc/cloud/cfgdrive_mnt iso9660 loop 0 0"}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aaa499b_ca739b7f","line":64,"updated":"2015-04-14 03:17:14.000000000","message":"please remove the space.","commit_id":"9717411771dbbc6c409093fdfa190d038e4288e6"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"259a1e61370ee49d64e42aca40580a7cb4a24866","unresolved":false,"context_lines":[{"line_number":27,"context_line":"* Primary partition is needed"},{"line_number":28,"context_line":"  For images like coreos, which already contains several primary partitions,"},{"line_number":29,"context_line":"  config drive partition creation will fail due to the total number of"},{"line_number":30,"context_line":"  primary partition is limited."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"* For partition based qcow2 images (versus volume based images), the whole"},{"line_number":33,"context_line":"  physical disk will be used up although the original image is small, while"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7aaa499b_0c163855","line":30,"updated":"2015-04-14 10:03:38.000000000","message":"Does coreos have 4 primary partitions? Or 3 and 1 extended? If the latter we perhaps could check for it and create a logical partition instead on [1]\n\n[1] https://github.com/openstack/ironic-python-agent/blob/79790171bc76207787873e58561b00652e8875c6/ironic_python_agent/shell/copy_configdrive_to_disk.sh#L60-L62","commit_id":"fa9d8434d5dfb75bdf934f0bc0806a81d0a3916f"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"6926aaa6f9d69456adbbcac39e3f52fb26eaa93c","unresolved":false,"context_lines":[{"line_number":27,"context_line":"* Primary partition is needed"},{"line_number":28,"context_line":"  For images like coreos, which already contains several primary partitions,"},{"line_number":29,"context_line":"  config drive partition creation will fail due to the total number of"},{"line_number":30,"context_line":"  primary partition is limited."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"* For partition based qcow2 images (versus volume based images), the whole"},{"line_number":33,"context_line":"  physical disk will be used up although the original image is small, while"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7aaa499b_201fa260","line":30,"in_reply_to":"7aaa499b_0c163855","updated":"2015-04-14 23:12:39.000000000","message":"coreos has complicated partition, see following:\n\nDisk /dev/nbd0: 9116MB\nSector size (logical/physical): 512B/512B\nPartition Table: gpt\n\nNumber  Start   End     Size    File system  Name        Flags\n 1      2097kB  136MB   134MB   fat16        EFI-SYSTEM  boot, legacy_boot\n 2      136MB   138MB   2097kB               BIOS-BOOT   bios_grub\n 3      138MB   1212MB  1074MB  ext2         USR-A\n 4      1212MB  2286MB  1074MB               USR-B\n 6      2286MB  2420MB  134MB   ext4         OEM\n 7      2420MB  2487MB  67.1MB               OEM-CONFIG\n 9      2487MB  9114MB  6627MB  ext4         ROOT","commit_id":"fa9d8434d5dfb75bdf934f0bc0806a81d0a3916f"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"29dd01b541448fcf44c984b8ee57aa1701b528ff","unresolved":false,"context_lines":[{"line_number":27,"context_line":"* Primary partition is needed"},{"line_number":28,"context_line":"  For images like coreos, which already contains several primary partitions,"},{"line_number":29,"context_line":"  config drive partition creation will fail due to the total number of"},{"line_number":30,"context_line":"  primary partition is limited."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"* For partition based qcow2 images (versus volume based images), the whole"},{"line_number":33,"context_line":"  physical disk will be used up although the original image is small, while"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7aaa499b_2f489c86","line":30,"in_reply_to":"7aaa499b_201fa260","updated":"2015-04-15 08:30:51.000000000","message":"Oh this is GPT... I thought it was MBR.\n\nCool, with GPT it may be easier cause you don\u0027t have the MBR partition number limitation (4 primaries or 3 primaries and 1 extended).\n\nFor this particular problem we may just need to make IPA aware that it\u0027s gpt and create the configdrive partition accordingly.","commit_id":"fa9d8434d5dfb75bdf934f0bc0806a81d0a3916f"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"259a1e61370ee49d64e42aca40580a7cb4a24866","unresolved":false,"context_lines":[{"line_number":50,"context_line":"added in Ironic service, while IPA shall accept this option."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"When calling \"prepare_image\" API, the actual value of this option will be"},{"line_number":53,"context_line":"passed to IPA."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"Once IPA detects loop device based configdrive is used, it shall execute"},{"line_number":56,"context_line":"following steps:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7aaa499b_c72149b6","line":53,"updated":"2015-04-14 10:03:38.000000000","message":"I\u0027d like to maybe propose a more generic implementation.\n\nThe \"prepare_image\" method for IPA is only used by the agent_* drivers. For pxe_* drivers using IPA that method won\u0027t be called. So...\n\nWhat about putting this logical to mount the configdrive as new extension for IPA? That will generically work with any driver in Ironic using IPA.\n\nThe short version:\n\n1- A driver writes the image onto the disk\n\n2- Your new extension injects the config driver onto that image.\n\n\nThe long version:\n\n1 - If \"configdrive_type\u003dloop\": We don\u0027t pass the configdrive parameter to the \"prepare_image\" command nor create a partition for the configdrive when partitioning the iSCSI target with the PXE drivers.\n\n2 - After the \"prepare_image\" command on IPA or the iSCSI partitioning. We then call that new command for IPA that will then inject the configdrive as you described below.","commit_id":"fa9d8434d5dfb75bdf934f0bc0806a81d0a3916f"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"6926aaa6f9d69456adbbcac39e3f52fb26eaa93c","unresolved":false,"context_lines":[{"line_number":50,"context_line":"added in Ironic service, while IPA shall accept this option."},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"When calling \"prepare_image\" API, the actual value of this option will be"},{"line_number":53,"context_line":"passed to IPA."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"Once IPA detects loop device based configdrive is used, it shall execute"},{"line_number":56,"context_line":"following steps:"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7aaa499b_70b8d1e5","line":53,"in_reply_to":"7aaa499b_c72149b6","updated":"2015-04-14 23:12:39.000000000","message":"Agree.","commit_id":"fa9d8434d5dfb75bdf934f0bc0806a81d0a3916f"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"259a1e61370ee49d64e42aca40580a7cb4a24866","unresolved":false,"context_lines":[{"line_number":58,"context_line":"* partx -a $device, discover the new partitions"},{"line_number":59,"context_line":"* vgchange -ay, discover new volumes"},{"line_number":60,"context_line":"* check all disk and partition block devices, if the size is greater than 0,"},{"line_number":61,"context_line":"  try mounting the disk/parition"},{"line_number":62,"context_line":"* search for \"fstab\" file in the mounted disk/partition"},{"line_number":63,"context_line":"* if \"fstab\" file is found, make folder \"cloud/configdrive\" under the parent"},{"line_number":64,"context_line":"  folder of \"fstab\" to save the configdrive content, and create folder"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7aaa499b_2c369452","line":61,"updated":"2015-04-14 10:03:38.000000000","message":"To avoid some of the try \u0026 error mounts here, many cloud images they label their root filesystem as \"cloudimg-rootfs\". Maybe we should look for this label first and if not found we can fall back to the try \u0026 error methodology?","commit_id":"fa9d8434d5dfb75bdf934f0bc0806a81d0a3916f"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"6926aaa6f9d69456adbbcac39e3f52fb26eaa93c","unresolved":false,"context_lines":[{"line_number":58,"context_line":"* partx -a $device, discover the new partitions"},{"line_number":59,"context_line":"* vgchange -ay, discover new volumes"},{"line_number":60,"context_line":"* check all disk and partition block devices, if the size is greater than 0,"},{"line_number":61,"context_line":"  try mounting the disk/parition"},{"line_number":62,"context_line":"* search for \"fstab\" file in the mounted disk/partition"},{"line_number":63,"context_line":"* if \"fstab\" file is found, make folder \"cloud/configdrive\" under the parent"},{"line_number":64,"context_line":"  folder of \"fstab\" to save the configdrive content, and create folder"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7aaa499b_a0585233","line":61,"in_reply_to":"7aaa499b_2c369452","updated":"2015-04-14 23:12:39.000000000","message":"Agree.","commit_id":"fa9d8434d5dfb75bdf934f0bc0806a81d0a3916f"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"259a1e61370ee49d64e42aca40580a7cb4a24866","unresolved":false,"context_lines":[{"line_number":130,"context_line":"New configurable option in [agent] section will be needed:"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"[agent]"},{"line_number":133,"context_line":"configdrive_type\u003dloop"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Developer impact"},{"line_number":136,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7aaa499b_ac2184fd","line":133,"updated":"2015-04-14 10:03:38.000000000","message":"So the supported options will be \"loop\" and \"partition\" and we are going to default it to \"partition\".","commit_id":"fa9d8434d5dfb75bdf934f0bc0806a81d0a3916f"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"6926aaa6f9d69456adbbcac39e3f52fb26eaa93c","unresolved":false,"context_lines":[{"line_number":130,"context_line":"New configurable option in [agent] section will be needed:"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"[agent]"},{"line_number":133,"context_line":"configdrive_type\u003dloop"},{"line_number":134,"context_line":""},{"line_number":135,"context_line":"Developer impact"},{"line_number":136,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7aaa499b_e99645ef","line":133,"in_reply_to":"7aaa499b_ac2184fd","updated":"2015-04-14 23:12:39.000000000","message":"Agree.","commit_id":"fa9d8434d5dfb75bdf934f0bc0806a81d0a3916f"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"68f9a767e8fafe91209f6a634f6090fe0dbc9d0e","unresolved":false,"context_lines":[{"line_number":73,"context_line":"* partx -a $device, discover new partitions"},{"line_number":74,"context_line":"* vgchange -ay, discover new volumes"},{"line_number":75,"context_line":"* check for block device with label \u003d \"cloudimg-rootfs\", mount it if found"},{"line_number":76,"context_line":"* if \"cloudimg-rootfs\" labled device is not found, iterate over all the disks"},{"line_number":77,"context_line":"  and partitions, if the size is not 0, try mounting the disk/parition"},{"line_number":78,"context_line":"* search for \"fstab\" file in the mounted disk/partition"},{"line_number":79,"context_line":"* if \"fstab\" file is found, make folder \"cloud/configdrive\" under the parent"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7aaa499b_3c80df45","line":76,"updated":"2015-04-15 05:22:39.000000000","message":"s/labled/labeled/","commit_id":"fbc51f78d8e87c6a9bd17f62ab107ce21cccfba8"},{"author":{"_account_id":13997,"name":"SHIGEMATSU Mitsuhiro","email":"shigematsu.mitsuhiro@lab.ntt.co.jp","username":"pshige"},"change_message_id":"68f9a767e8fafe91209f6a634f6090fe0dbc9d0e","unresolved":false,"context_lines":[{"line_number":74,"context_line":"* vgchange -ay, discover new volumes"},{"line_number":75,"context_line":"* check for block device with label \u003d \"cloudimg-rootfs\", mount it if found"},{"line_number":76,"context_line":"* if \"cloudimg-rootfs\" labled device is not found, iterate over all the disks"},{"line_number":77,"context_line":"  and partitions, if the size is not 0, try mounting the disk/parition"},{"line_number":78,"context_line":"* search for \"fstab\" file in the mounted disk/partition"},{"line_number":79,"context_line":"* if \"fstab\" file is found, make folder \"cloud/configdrive\" under the parent"},{"line_number":80,"context_line":"  folder of \"fstab\" to save the configdrive iso, and create folder"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7aaa499b_fc92779e","line":77,"updated":"2015-04-15 05:22:39.000000000","message":"s/parition/partition/","commit_id":"fbc51f78d8e87c6a9bd17f62ab107ce21cccfba8"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"f9dd8a2814cc10825dc1aa57d9b2f4aabcf098f0","unresolved":false,"context_lines":[{"line_number":74,"context_line":"* vgchange -ay, discover new volumes"},{"line_number":75,"context_line":"* check for block device with label \u003d \"cloudimg-rootfs\", mount it if found"},{"line_number":76,"context_line":"* if \"cloudimg-rootfs\" labled device is not found, iterate over all the disks"},{"line_number":77,"context_line":"  and partitions, if the size is not 0, try mounting the disk/parition"},{"line_number":78,"context_line":"* search for \"fstab\" file in the mounted disk/partition"},{"line_number":79,"context_line":"* if \"fstab\" file is found, make folder \"cloud/configdrive\" under the parent"},{"line_number":80,"context_line":"  folder of \"fstab\" to save the configdrive iso, and create folder"}],"source_content_type":"text/x-rst","patch_set":4,"id":"7aaa499b_1743bc43","line":77,"in_reply_to":"7aaa499b_fc92779e","updated":"2015-04-15 06:11:51.000000000","message":"Thanks SHIGEMATSU Mitsuhiro, submitted new patch.","commit_id":"fbc51f78d8e87c6a9bd17f62ab107ce21cccfba8"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"096d239d9090c5a9a79518a8a1d98dfe1f7ae70f","unresolved":false,"context_lines":[{"line_number":51,"context_line":"  \"IPA: creation of configdrive partition fails if MBR \u0026 disk\u003e2TB\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"To solve this problem, we can store the configdrive iso somewhere in the"},{"line_number":54,"context_line":"file system after imaging is done, then add an entry in \"fstab\" to mount the"},{"line_number":55,"context_line":"iso as loop device. When the system is up, the configdrive iso will be mounted"},{"line_number":56,"context_line":"automatically, and cloud-init is able to detect the configdrive by"},{"line_number":57,"context_line":"\"config-2\" label."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_9520289d","line":54,"updated":"2015-04-23 17:53:00.000000000","message":"I think you\u0027re going to have the same problem you do with partitions -- there\u0027s an assumption here you\u0027re going to be able to support any filesystem you can deploy, which really isn\u0027t true.\n\nWhat if I\u0027m deploying a ZFS based image? NTFS? Jay\u0027s Fancy-Dan Filesystem?","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"f754286d8502c2cacad4db82e45e49b8a8220101","unresolved":false,"context_lines":[{"line_number":51,"context_line":"  \"IPA: creation of configdrive partition fails if MBR \u0026 disk\u003e2TB\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"To solve this problem, we can store the configdrive iso somewhere in the"},{"line_number":54,"context_line":"file system after imaging is done, then add an entry in \"fstab\" to mount the"},{"line_number":55,"context_line":"iso as loop device. When the system is up, the configdrive iso will be mounted"},{"line_number":56,"context_line":"automatically, and cloud-init is able to detect the configdrive by"},{"line_number":57,"context_line":"\"config-2\" label."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_66ec9b8f","line":54,"in_reply_to":"bab921fb_8b721dac","updated":"2015-04-24 13:48:40.000000000","message":"The concerns here are valid but I think they fall into the same problem that other features already present in Ironic also have.\n\nSay local boot with partition images, this also is file system dependent because it mounts the partition to access the grub installer. And won\u0027t work with Windows. If someone is deploying windows with local boot they have to use a full disk partition image.\n\nThe  agent methodology to append a config drive partition as well. There\u0027s many assumptions on that, as pointed to this spec. What if the disk already has 4 primary partitions? It won\u0027t work.\n\nThe agent also assumes the partition schema to be MBR, but what if it was GPT? or BSD? or AIX? or APM? It won\u0027t work either\n\nPerhaps we should have a good documentation explaining how what can and what can not be done by a feature?","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"94e3c156dcf9211eaa8d15d6e204d715b612bf4b","unresolved":false,"context_lines":[{"line_number":51,"context_line":"  \"IPA: creation of configdrive partition fails if MBR \u0026 disk\u003e2TB\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"To solve this problem, we can store the configdrive iso somewhere in the"},{"line_number":54,"context_line":"file system after imaging is done, then add an entry in \"fstab\" to mount the"},{"line_number":55,"context_line":"iso as loop device. When the system is up, the configdrive iso will be mounted"},{"line_number":56,"context_line":"automatically, and cloud-init is able to detect the configdrive by"},{"line_number":57,"context_line":"\"config-2\" label."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_e6b6993c","line":54,"in_reply_to":"bab921fb_9520289d","updated":"2015-04-23 19:55:57.000000000","message":"Anyway we need to maintain the deployer ramdisk, as long as zfs, ntfs, Jay\u0027s Fancy-Dan fs modules are included in the ramdisk, no extra effort.\nBesides, for a private cloud, the types of filesystem are under control.","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"84dcf66304fa8696cf1281fd54561897fba44ac8","unresolved":false,"context_lines":[{"line_number":51,"context_line":"  \"IPA: creation of configdrive partition fails if MBR \u0026 disk\u003e2TB\""},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"To solve this problem, we can store the configdrive iso somewhere in the"},{"line_number":54,"context_line":"file system after imaging is done, then add an entry in \"fstab\" to mount the"},{"line_number":55,"context_line":"iso as loop device. When the system is up, the configdrive iso will be mounted"},{"line_number":56,"context_line":"automatically, and cloud-init is able to detect the configdrive by"},{"line_number":57,"context_line":"\"config-2\" label."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_8b721dac","line":54,"in_reply_to":"bab921fb_e6b6993c","updated":"2015-04-24 12:54:39.000000000","message":"From an operator standpoint, the operator could make the effort to have support for all possible filesystems, however that wouldn\u0027t prevent a user from supplying an appliance image to be deployed that could have something entirely different.  Perhaps an automatic fallback to partition capability is also required?\n\nThis may sound crazy, but what if someone is deploying Windows machines that are using config drives as a data source?","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"84dcf66304fa8696cf1281fd54561897fba44ac8","unresolved":false,"context_lines":[{"line_number":60,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Users shall still have the option to use partition based configdrive, so a"},{"line_number":63,"context_line":"service level configuration option shall be added in Ironic service."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"A new extension shall be added on the IPA side, which will specifically"},{"line_number":66,"context_line":"scan for the root file system and mount the iso as loop device."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_d63b189b","line":63,"updated":"2015-04-24 12:54:39.000000000","message":"What if I want to use this loop method by default, but I have machines being managed by the same Ironic installation that cannot be deployed using the loop method?","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"a49b5c16677831a782c6859d73dda3bb44c74eb9","unresolved":false,"context_lines":[{"line_number":60,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Users shall still have the option to use partition based configdrive, so a"},{"line_number":63,"context_line":"service level configuration option shall be added in Ironic service."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"A new extension shall be added on the IPA side, which will specifically"},{"line_number":66,"context_line":"scan for the root file system and mount the iso as loop device."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_952d8548","line":63,"in_reply_to":"bab921fb_b99654ee","updated":"2015-04-24 17:18:30.000000000","message":"Good point, I\u0027ll update the spec.","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"f754286d8502c2cacad4db82e45e49b8a8220101","unresolved":false,"context_lines":[{"line_number":60,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"Users shall still have the option to use partition based configdrive, so a"},{"line_number":63,"context_line":"service level configuration option shall be added in Ironic service."},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"A new extension shall be added on the IPA side, which will specifically"},{"line_number":66,"context_line":"scan for the root file system and mount the iso as loop device."}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_b99654ee","line":63,"in_reply_to":"bab921fb_d63b189b","updated":"2015-04-24 13:48:40.000000000","message":"That\u0027s a good point. Perhaps for this configuration, as it depends on the image being deployed, should be a image metadata glance? And a parameter in instance_info for the standalone version.\n\nI think that would be good. Just like we look at glance\u0027s metadata to get the image\u0027s kernel and ramdisk for the PXE boot[1], we could get this information whether how to mount the config drive for that image if requested by the user.\n\n[1] https://github.com/openstack/ironic/blob/master/ironic/drivers/modules/pxe.py#L300-L307\n\n...\n\nWhat you think jxiaobin?","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"096d239d9090c5a9a79518a8a1d98dfe1f7ae70f","unresolved":false,"context_lines":[{"line_number":80,"context_line":"  folder of \"fstab\" to save the configdrive iso, and create folder"},{"line_number":81,"context_line":"  \"cloud/cfgdrive_mnt\" as the mount point"},{"line_number":82,"context_line":"* append an entry in \"fstab\" file, e.g."},{"line_number":83,"context_line":"  /etc/cloud/configdrive/config.disk /etc/cloud/cfgdrive_mnt iso9660 loop 0 0"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"Alternatives"},{"line_number":86,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_15c9b878","line":83,"updated":"2015-04-23 17:53:00.000000000","message":"I\u0027m very curious if this will even work; I\u0027m not sure cloud-init searches through mounted filesystems for a configdrive.","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"94e3c156dcf9211eaa8d15d6e204d715b612bf4b","unresolved":false,"context_lines":[{"line_number":80,"context_line":"  folder of \"fstab\" to save the configdrive iso, and create folder"},{"line_number":81,"context_line":"  \"cloud/cfgdrive_mnt\" as the mount point"},{"line_number":82,"context_line":"* append an entry in \"fstab\" file, e.g."},{"line_number":83,"context_line":"  /etc/cloud/configdrive/config.disk /etc/cloud/cfgdrive_mnt iso9660 loop 0 0"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"Alternatives"},{"line_number":86,"context_line":"------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_a6d54144","line":83,"in_reply_to":"bab921fb_15c9b878","updated":"2015-04-23 19:55:57.000000000","message":"This has been validated, cloud-init will load the loop device with label \"config2\".\nThis feature is now running in our environment, we just want to merge it to upstream, in order not to drift from trunk too far away.","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":11076,"name":"Shivanand Tendulker","email":"stendulker@gmail.com","username":"stendulker"},"change_message_id":"a5942d2d23a1ea866182e7b54515842fa1b2647c","unresolved":false,"context_lines":[{"line_number":88,"context_line":"* Mount configdrive to virtual drive"},{"line_number":89,"context_line":"  With vendor specific tools, it\u0027s possible to mount configdrive to a virtual"},{"line_number":90,"context_line":"  drive through network. But it\u0027d be troublesome to deal with various tools"},{"line_number":91,"context_line":"  from different vendors."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Data model impact"},{"line_number":94,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dac4157f_e3dabee7","line":91,"updated":"2015-04-22 15:38:33.000000000","message":"Can this be another alternative:-\n1. Host the iso on a web server or glance as temporary file (assuming it is required for one time) .\n2. Based on \u0027loop\u0027 option, post target disk imaging IPA extension can store a sytemd or rc script containing the web link and other details to download and mount the iso appropriately. This may be able to avoid the searching for appropriate partition in all disks.","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"096d239d9090c5a9a79518a8a1d98dfe1f7ae70f","unresolved":false,"context_lines":[{"line_number":88,"context_line":"* Mount configdrive to virtual drive"},{"line_number":89,"context_line":"  With vendor specific tools, it\u0027s possible to mount configdrive to a virtual"},{"line_number":90,"context_line":"  drive through network. But it\u0027d be troublesome to deal with various tools"},{"line_number":91,"context_line":"  from different vendors."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Data model impact"},{"line_number":94,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_15ae5885","line":91,"in_reply_to":"dac4157f_68f56655","updated":"2015-04-23 17:53:00.000000000","message":"Agreed with jxiobin, we can\u0027t assume network is up before cloud-init has run.","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"7d673bf98c6d754e9c841466ce7a91765a9d5f16","unresolved":false,"context_lines":[{"line_number":88,"context_line":"* Mount configdrive to virtual drive"},{"line_number":89,"context_line":"  With vendor specific tools, it\u0027s possible to mount configdrive to a virtual"},{"line_number":90,"context_line":"  drive through network. But it\u0027d be troublesome to deal with various tools"},{"line_number":91,"context_line":"  from different vendors."},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"Data model impact"},{"line_number":94,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"dac4157f_68f56655","line":91,"in_reply_to":"dac4157f_e3dabee7","updated":"2015-04-22 17:03:59.000000000","message":"This might not work, it is not guaranteed that network is up when cloud-init starts running, downloading might fail.","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"84dcf66304fa8696cf1281fd54561897fba44ac8","unresolved":false,"context_lines":[{"line_number":193,"context_line":"Documentation Impact"},{"line_number":194,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"Documentation may need updating to indicate how to configure Ironic/IPA"},{"line_number":197,"context_line":"to mount iso as loop device to supply meta data."},{"line_number":198,"context_line":""},{"line_number":199,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_36ddb40e","line":196,"updated":"2015-04-24 12:54:39.000000000","message":"Just my $0.02, but since this would change the IPA behavior such that the image written is modified, that documentation should be explicitly updated to detail how and what IPA does when the mode is utilized so a user understands the risks or impacts of using such a mode.","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"},{"author":{"_account_id":15862,"name":"jxiaobin","email":"jxiaobin@ebaysf.com","username":"jxiaobin"},"change_message_id":"a49b5c16677831a782c6859d73dda3bb44c74eb9","unresolved":false,"context_lines":[{"line_number":193,"context_line":"Documentation Impact"},{"line_number":194,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"Documentation may need updating to indicate how to configure Ironic/IPA"},{"line_number":197,"context_line":"to mount iso as loop device to supply meta data."},{"line_number":198,"context_line":""},{"line_number":199,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"bab921fb_55b5adeb","line":196,"in_reply_to":"bab921fb_36ddb40e","updated":"2015-04-24 17:18:30.000000000","message":"Agree","commit_id":"acdcecacf6228722a160abb842181ef6eceef370"}]}
