[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [tosca-interop] some questions about the csar
Hi Matt,
Thank you for your answers. But I still have some questions.
1.
The server node is ok. We could create a VM based on the requirements of the Server node. But in the CSAR package, should we indicate
which os (in the demo we will use RHEL6.3) will be installed on the VM ? but this information is not include in the CSAR package except README. 2.Indeed we discuss it several weeks before. I remember that in your opinion that the os already includes with some
softwares(apache, mysql etc)(plz see the attachment 1. in the mail, “ it
appears that they assume that the operating system (as part of the VM, which is named "VmApache_os" in the "SugarCRM-Defintions.xml" file)
already has the Apache and MySQL software available.”);
but with Thomas opinion, it is just the pure os without any other software. (plz see the attachment 2. In the mail,
“On your second question: the statement in my last email is correct:
the VMs just have the base operating system installed and do not yet include any of the packages for mysql. httpd, php etc. Those get installed by deploying the DeploymentArtifacts of type OsPackageArtifact. This is purely
declarative, so that's why there is no install command in any of the scripts. Solely by the fact that those DeploymentArtifacts are defined, the orchestrator "knows" that the respective packages have to be installed before any of the script operations run.
Based on the package type, the orchestrator "knows" which install commands to use for the packages.”)and
in the CSAR package, there are some OsPackageArtifact which provide the information about the install package( file type etc.) but without reference which indicate the place to get the install package, for example: <ArtifactTemplate id="at-ApacheWebServer-http-packages" name="http-packages" type="ns1:OsPackageArtifact"> <Properties> <ns1:OsPackageArtifactProperties xmlns:ns1="http://docs.oasis-open.org/tosca/ns/2011/12/ToscaBaseTypes"
packageType="rpm" xmlns="http://docs.oasis-open.org/tosca/ns/2011/12/ToscaBaseTypes"> <PackageInformation packageName="httpd"/> </ns1:OsPackageArtifactProperties> </Properties> </ArtifactTemplate> So which solution we should use? Any suggestions & comments will be appreciated. Best Regards Jin Qin HUAWEI TECHNOLOGIES CO.,LTD.
Huawei Nanjing Base From: tosca-interop@lists.oasis-open.org [mailto:tosca-interop@lists.oasis-open.org]
On Behalf Of Matt Rutkowski Hi Chin,
|
--- Begin Message ---Hi Chin,
- From: Matt Rutkowski <mrutkows@us.ibm.com>
- To: "Qinjin (Chin)" <chin.qinjin@huawei.com>
- Date: Wed, 17 Jul 2013 15:47:00 +0000
Thomas is the expert on the CSAR file as he created it, but I will attempt to answer based upon what I know and what I see in the actual SugarCRM CSAR file (ZIP) uploaded to the TOSCA Interop SC here:
https://www.oasis-open.org/apps/org/workgroup/tosca-interop/download.php/47264/SugarCRM-20121022.zip
1. How is the Tosca container connect to the VM instance? Just by ssh, or the other method? If by ssh, what’s the username and password will be used?
It appears that most of the scripts assume that they are being run within the instance itself. In that way, they are able to be run immediately after the VM is created by the orchestration engine.
2. Have the Mysql and Apache already integrated in the VM images and only to config them? Or VM images just provide the pure OS, the Mysql and Apache will be installed through Tosca CSAR file? What is the account name and password for the mysql? I still suggest to use the same VM images for the demo. It could reduce many problems.
Looking at the scripts, it appears that they assume that the operating system (as part of the VM, which is named "VmApache_os" in the "SugarCRM-Defintions.xml" file) already has the Apache and MySQL software available. The "install.sh" scripts for Apache ("httpd") and MySQL ("mysqld") both use the "chkconfig" utility to configure and have them "autostart" as services when the VM itself is started. The chkconfig utility is assumed to be present on many Linux distros. and is commonly used for this purpose.
I would ask Thomas or Derek to describe how userid/passwords are managed in the actual CSAR file we used for interop. For initial development and testing, I would recommend using whatever userid/password you may need (and likely it is the admin password for the operating system image of the VM).
3. In the discussion, I remember that there is a import and export process. Is it means that the demo will use the company A ‘s tool to generate the CSAR file and use company B ‘s runtime environment to deploy it with that CSAR file? We worried that the used different CSAR may cause some problems, so we suggest that: The CSAR file generate by the tools should be provide as soon as possible for the other company to test their deploy demo;
Yes, the "story" will be as you have outlined. Using your example, Company A will be Vnomic which will effectively create the ZIP of the CSAR file (in this interop this will be equivalent / completely identical to the "SugarCRM-20121022.zip" file uploaded to the TOSCA Interop. SC, but it would actually contain the SugarCRM software ZIP file. As in the Pulse demo, Vnomic would export (or "upload") the ZIP to the IBM ISM Cloud Marketplace where Company B (or Company C, D, etc.) would be able to download it from and "import" it into their tools or deploy to their cloud (runtime).
I hope this helps. Anyone feel free to correct me if I am wrong in any of these answers.
Kind regards,
Matt
From: "Qinjin (Chin)" <chin.qinjin@huawei.com>
To: "tosca-interop@lists.oasis-open.org" <tosca-interop@lists.oasis-open.org>
Cc: Matt Rutkowski/Austin/IBM@IBMUS, Thomas Spatzier <thomas.spatzier@de.ibm.com>
Date: 07/16/2013 02:01 AM
Subject: [tosca-interop] some questions about the demo
Sent by: <tosca-interop@lists.oasis-open.org>
Hi all
As Huawei want to show the process of the deployment. It means that the demo will use the CSAR file directly. So there are some questions need to clarify:
1. How is the Tosca container connect to the VM instance? Just by ssh, or the other method? If by ssh, what’s the username and password will be used?
2. Have the Mysql and Apache already integrated in the VM images and only to config them? Or VM images just provide the pure OS, the Mysql and Apache will be installed through Tosca CSAR file? What is the account name and password for the mysql? I still suggest to use the same VM images for the demo. It could reduce many problems.
3. In the discussion, I remember that there is a import and export process. Is it means that the demo will use the company A ‘s tool to generate the CSAR file and use company B ‘s runtime environment to deploy it with that CSAR file? We worried that the used different CSAR may cause some problems, so we suggest that: The CSAR file generate by the tools should be provide as soon as possible for the other company to test their deploy demo;
Best Regards
Jin Qin
HUAWEI TECHNOLOGIES CO.,LTD.
Huawei Nanjing Base
No 101. Software Street
Nanjing 210012, P.R.China
Tel: +86 25 566 20559
Fax: +86 25 566 24081
Mobile: +86 13851946871
E-mail:chin.qinjin@huawei.com
www.huawei.com
----------------------------------------------
--- End Message ---
--- Begin Message ---
- From: Thomas Spatzier <thomas.spatzier@de.ibm.com>
- To: "Qinjin (Chin)" <chin.qinjin@huawei.com>
- Date: Wed, 24 Jul 2013 06:47:05 +0000
Hi Jin Qin, the current SugarCRM does not include VM images and also no references to images. Currently, we are assuming that the respective cloud runtime will just provide an RHEL 6.3 x86_64 or equivalent image (Fedore or CentOS) for creating the VMs. On your second question: the statement in my last email is correct: the VMs just have the base operating system installed and do not yet include any of the packages for mysql. httpd, php etc. Those get installed by deploying the DeploymentArtifacts of type OsPackageArtifact. This is purely declarative, so that's why there is no install command in any of the scripts. Solely by the fact that those DeploymentArtifacts are defined, the orchestrator "knows" that the respective packages have to be installed before any of the script operations run. Based on the package type, the orchestrator "knows" which install commands to use for the packages. Regards, Thomas ----------------------------------------------------------------------------------------------------- Cloud & Smarter Infrastructure CTO Office - Cloud Orchestration, Cloud Standards Tivoli Master Inventor IBM Deutschland Research & Development GmbH, C397, Schoenaicher Str. 220, D-71032 Boeblingen, Germany thomas.spatzier@de.ibm.com | +49-7031-16-1219 IBM Deutschland Research & Development GmbH / Vorsitzende des Aufsichtsrats: Martina Koederitz Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294 From: "Qinjin (Chin)" <chin.qinjin@huawei.com> To: Thomas Spatzier/Germany/IBM@IBMDE, Cc: "tosca-interop@lists.oasis-open.org" <tosca-interop@lists.oasis-open.org> Date: 24.07.2013 03:09 Subject: questions about demo Hi Thomas, VM images are supposed to be included in the CSAR package. These VM images should be referenced by the corresponding NodeTemplate or NodeTypeImplementation. But we find no clue in the current CSAR package that can lead to an image. So we just wander how could you locate and import the VM images before deploying the CRM application? In the last email which you reply to me mentioned that the VM image just provide the base operation system. But in Matt’s mail, he said the VM image should include the Apache or Mysql. So could you discuss with Matt to ensure which solution IBM will adopt? Indeed I prefer Matt’s opinion, it could make the test more simply. And currently the scripts are not provide the install function. Best Regards Jin Qin HUAWEI TECHNOLOGIES CO.,LTD. (Embedded image moved to file: pic14506.jpg)huawei_logo Huawei Nanjing Base No 101. Software Street Nanjing 210012, P.R.China Tel: +86 25 566 20559 Fax: +86 25 566 24081 Mobile: +86 13851946871 E-mail:chin.qinjin@huawei.com www.huawei.com ----------------------------------------------Attachment: pic14506.jpg
Description: pic14506.jpg
--- End Message ---
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]