I just upload the yaml file to a wiki page. https://wiki.opnfv.org/display/CIRV/CNTT+RI+installer+description+file Which will be much easier for people to read it.
-----邮件原件----- 发件人: Chen Liang <chenliang...@chinamobile.com> 发送时间: 2020年1月15日 18:24 收件人: fuq...@chinamobile.com; georg.k...@ericsson.com; 'SHOSTAK, MARK' <ms7...@att.com>; opnfv-tech-discuss@lists.opnfv.org 主题: 答复: [opnfv-tech-discuss] OPNFV PDF to Airship Manifest transformation Hacking! Thanks for the sharing, that's very helpful for the definition of uniform description file. 陈亮 网络与IT技术研究所 -----邮件原件----- 发件人: fuq...@chinamobile.com [mailto:fuq...@chinamobile.com] 发送时间: 2020年1月15日 18:11 收件人: georg.k...@ericsson.com; 'SHOSTAK, MARK'; opnfv-tech-discuss@lists.opnfv.org; 'Chen Liang' 主题: 答复: [opnfv-tech-discuss] OPNFV PDF to Airship Manifest transformation Hacking! Cc my colleague Chen Liang, who is working on the description file for CNTT RI. He has just upload the yaml file of description file on to github. https://github.com/cntt-n/CNTT/pull/944/files @'Chen Liang'could you please also review the config file in akraino which George mentioned, and see if there is experience we can learn from? [1] https://gerrit.akraino.org/r/gitweb?p=yaml_builds.git;a=tree;f=site_type/sri ov-a13/templates;h=61daa1b4b4d3c2adbc6c7301cd26a75406624e6f;hb=refs/heads/ma ster [2] https://gerrit.akraino.org/r/gitweb?p=yaml_builds.git;a=blob;f=site_type/sri ov-a13/templates/baremetal/nodes.j2;h=df0ab54e820a7c4734c889c0c596afbd61c723 b4;hb=refs/heads/master -----邮件原件----- 发件人: opnfv-tech-discuss@lists.opnfv.org <opnfv-tech-discuss@lists.opnfv.org> 代表 Georg Kunz via Lists.Opnfv.Org 发送时间: 2020年1月15日 16:16 收件人: SHOSTAK, MARK <ms7...@att.com>; opnfv-tech-discuss@lists.opnfv.org 抄送: opnfv-tech-discuss@lists.opnfv.org 主题: Re: [opnfv-tech-discuss] OPNFV PDF to Airship Manifest transformation Hacking! Hi Mark, Indeed, the magic is in the templates. I linked to the entire set of templates [1] in my previous email. The template files are structured according to the file and directory structure in treasuremap. As a concrete example, the nodes.j2 file [2] is a templated version of the nodes.yaml file of the treasuremap repo, describing the bare-metal nodes of a particular site. Admittedly, the Akraino input config file was designed with the requirements of Airship in mind, i.e., it includes all information needed to render the templates. As the PDF on the other hand contains a different set of information, the main question of the gaps between the PDF and the Airship manifests remains. But this is independent of the implementation of the translation mechanism. [1] https://gerrit.akraino.org/r/gitweb?p=yaml_builds.git;a=tree;f=site_type/sri ov-a13/templates;h=61daa1b4b4d3c2adbc6c7301cd26a75406624e6f;hb=refs/heads/ma ster [2] https://gerrit.akraino.org/r/gitweb?p=yaml_builds.git;a=blob;f=site_type/sri ov-a13/templates/baremetal/nodes.j2;h=df0ab54e820a7c4734c889c0c596afbd61c723 b4;hb=refs/heads/master Best regards Georg -----Original Message----- From: SHOSTAK, MARK <ms7...@att.com> Sent: Tuesday, January 14, 2020 10:15 PM To: Georg Kunz <georg.k...@ericsson.com>; opnfv-tech-discuss@lists.opnfv.org Subject: RE: [opnfv-tech-discuss] OPNFV PDF to Airship Manifest transformation Hacking! Thanks Georg, that's interesting. It's a very short script, so I'm guessing the magic is in the template files, which I have yet to find. Do you have any links to the templates or some other documentation/wiki/whatever? Have others looked at this script? Any thoughts? Thanks, -Mark -----Original Message----- From: Georg Kunz [mailto:georg.k...@ericsson.com] Sent: Tuesday, January 14, 2020 09:20 To: SHOSTAK, MARK <ms7...@att.com>; opnfv-tech-discuss@lists.opnfv.org Subject: RE: [opnfv-tech-discuss] OPNFV PDF to Airship Manifest transformation Hacking! Hi Marc, all, As I mentioned in yesterday's session, I'd like to make you aware of translation tooling that was created in the context of the Akraino Network Cloud blueprint work. Specifically, jinja2 templates [1] and a small copy tool [2] are used to create valid Airship input manifests based on an Akraino-specific input file [3]. Consider this to be a proposal for discussion. I am also happy to quickly walk you through this tomorrow, tomorrow or during an upcoming online meeting, if there is interest. [1] https://urldefense.proofpoint.com/v2/url?u=https-3A__gerrit.akraino.org_r_gi tweb-3Fp-3Dyaml-5Fbuilds.git-3Ba-3Dtree-3Bf-3Dsite-5Ftype_sriov-2Da13_templa tes-3Bh-3D61daa1b4b4d3c2adbc6c7301cd26a75406624e6f-3Bhb-3Drefs_heads_master& d=DwIFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=jpZpdbY46Bqv_Ghv8dHXcbwtfXtibdpcqKx0s1Qr MGM&m=COjkFPF3Yx4WSmVSl5GcbXANi_m_TvChqgclHnmUIdg&s=dAAlZT9wHpyTqeJJcrSdKavJ lT76wkDyFHaRb-vtM2A&e= [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__gerrit.akraino.org_r_gi tweb-3Fp-3Dyaml-5Fbuilds.git-3Ba-3Dblob-3Bf-3Dscripts_jcopy.py-3Bh-3Db48c5fd 33373e482dd35fffb42b9d1d9d7798d51-3Bhb-3Drefs_heads_master&d=DwIFAg&c=LFYZ-o 9_HUMeMTSQicvjIg&r=jpZpdbY46Bqv_Ghv8dHXcbwtfXtibdpcqKx0s1QrMGM&m=COjkFPF3Yx4 WSmVSl5GcbXANi_m_TvChqgclHnmUIdg&s=sXwxNIzMKbu6SyWwi0DTd_nhf6aG2ARLOfx0dw2QA QA&e= [3] https://urldefense.proofpoint.com/v2/url?u=https-3A__gerrit.akraino.org_r_gi tweb-3Fp-3Dyaml-5Fbuilds.git-3Ba-3Dblob-3Bf-3Ddellgen10-2Dsriov-2Da13.yaml-3 Bh-3D76afca21cd6218205547a4ab09c382367e8ad965-3Bhb-3Drefs_heads_master&d=DwI FAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=jpZpdbY46Bqv_Ghv8dHXcbwtfXtibdpcqKx0s1QrMGM&m =COjkFPF3Yx4WSmVSl5GcbXANi_m_TvChqgclHnmUIdg&s=jBzvztgYJ_u9GT95tyodgwkM_zXvK pgyAY9FELEHKtY&e= Best regards Georg -----Original Message----- From: opnfv-tech-discuss@lists.opnfv.org <opnfv-tech-discuss@lists.opnfv.org> On Behalf Of SHOSTAK, MARK via Lists.Opnfv.Org Sent: Tuesday, January 14, 2020 4:40 AM To: opnfv-tech-discuss@lists.opnfv.org Cc: opnfv-tech-discuss@lists.opnfv.org Subject: Re: [opnfv-tech-discuss] OPNFV PDF to Airship Manifest transformation Hacking! Team, Re: Meeting for Tuesday 14/1 - I wasn't able to find any slots open for the day. However, if people are interested, I can cut my lunch short or we can brown-bag it, and meet at 13:00 CEST/local time // we get 90 mins from 12:30 to 14:00 for lunch. Re: Manifest files on wiki - I added some links to the PDF->AS1.0 wiki (https://urldefense.proofpoint.com/v2/url?u=https-3A__protect2.fireeye.com_v 1_url-3Fk-3D5dd25fc9-2D015b858e-2D5dd21f52-2D0cc47ad93c18-2D003583a7258f4a7e -26q-3D1-26e-3D8bf56d22-2D9e74-2D45a9-2D8874-2D6d137c5a32ff-26u-3Dhttps-253A -252F-252Fwiki.lfnetworking.org-252Fdisplay-252FLN-252FChallenge-25253A-252B OPNFV-252BPDF-252Bto-252BAirship-252BManifest-252BTransformation&d=DwIFAg&c= LFYZ-o9_HUMeMTSQicvjIg&r=jpZpdbY46Bqv_Ghv8dHXcbwtfXtibdpcqKx0s1QrMGM&m=COjkF PF3Yx4WSmVSl5GcbXANi_m_TvChqgclHnmUIdg&s=JESBWn3fuc_yH7XnVlflFT0nbSamFEfqvJh jUb7_IJc&e= ) to the actual pod manifest files (Github) as well as the generic Treasuremap files. I was able to dig out the YAML files someone posted on the wiki, in the pod directory tree. If you look at these files for a pod, it will acclimate you the directory structure, as well as the general schema format (spoiler alert: it's YAML). Re: Next steps - Does someone want to take the first crack at a shell/structure that reads the source PDF file and emits the target files? I'm thinking we can then start building it out with the permutations/mappings. Feel free to reply regarding a brown-bag meeting, as well as any other comments/questions. Thanks! Mark Shostak -----Original Message----- From: opnfv-tech-discuss@lists.opnfv.org [mailto:opnfv-tech-discuss@lists.opnfv.org] On Behalf Of MORTON JR., AL Sent: Monday, January 13, 2020 7:22 AM To: opnfv-tech-discuss@lists.opnfv.org Subject: [opnfv-tech-discuss] OPNFV PDF to Airship Manifest transformation Hacking! This thread is for coordination another/working/Hacking Session *During the DDF week* on the subject above. See Slides and Attendance list (please add your name) at https://urldefense. proofpoint.com/v2/url?u=https-3A__wiki.lfnetworking.org_display_LN_Challenge -253A-2BOPNFV-2BPDF-2Bto-2BAirship-2BManifest-2BTransformation&d=DwIFAg&c=LF YZ-o9_HUMeMTSQicvjIg&r=f17OXAYKHTCrGSIbODPLiw&m=1mwzwW_GR1WUmDmssXGrZ_kb0YHI SuFGXbgA6kSBsGo&s=xEwRpJqVEJqFxu5Etd6VJvrz4yObb5nArvg8F-O-x1w&e= Thanks! Al, for Mark Shostak
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#23838): https://lists.opnfv.org/g/opnfv-tech-discuss/message/23838 Mute This Topic: https://lists.opnfv.org/mt/69714186/21656 Group Owner: opnfv-tech-discuss+ow...@lists.opnfv.org Unsubscribe: https://lists.opnfv.org/g/opnfv-tech-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-