AIST Super Green Cloudã«ãããCloudStackéç¨è©±
æ¬ã¨ã³ããªã¯CloudStack Advent Calendar 2014ã®22æ¥ç®ã®ã¨ã³ããªã¨ãã¦æ¸ãã¾ããã
ã¯ããã«
ä»å¹´ã®7æããApache CloudStackãç¨ãã¦ãã©ã¤ãã¼ãã¯ã©ã¦ããéç¨ãã¦ãã¾ãããªã¼ãã³ã½ã¼ã¹çã®CloudStackã155å°ï¼ããã»ããµæ°3100ï¼ã®è¨ç®æ©ã§éç¨ããã¨ããã®ã¯ããããªãã®è¦æ¨¡ã ã¨èªè² ãã¦ãã¾ããInfiniBand + PCIãã¹ã¹ã«ã¼ã§HPCç¨éã§ã使ããæ§è½ãæã£ãä»®æ³ã¯ã©ã¹ã¿ãæä¾ããã¨ããç¹ãç®çã§ãã詳細ã¯æ¬¡ã®2ã¤ã®ã¹ã©ã¤ããåç §ãã¦ãããã¨ãã¦ãæ¬ã¨ã³ããªã§ã¯ãç¾å¨ã«è³ãã¾ã§ééããCloudStackã®åé¡ãã¾ã¨ãã¦ã¿ã¾ããã
ãã©ã¤ããªã¹ãã¬ã¼ã¸ããã¼ã«ã«ãã£ã¹ã¯ãã»ã«ã³ããªã¹ãã¬ã¼ã¸ãS3äºæã®Cephオブジェクトストレージã¨ããå ·åã«ãä¸è¬çãªæ§æã¨ã¯ã¡ãã£ã¨éã£ã¦ããã®ã§ã³ã¼ãã¼ã±ã¼ã¹ãããããè¸ãã§ãã模æ§ã§ããé常ã¯ãã©ã¤ããªã¹ãã¬ã¼ã¸ã¨ãã¦NFSãªã©ã®å ±æã¹ãã¬ã¼ã¸ã使ããã¾ããCloudStackã§ã¯ãã¹ã±ã¸ã¥ã¼ã©ãé¸ãã ãã¹ãã«VMããããã¤ããä½ãåé¡ãããã¨ãVMãã¤ã°ã¬ã¼ã·ã§ã³ã§å¥ãã¹ãã«åããã¨ããå¦çãè¡ããã¨ãããã¾ããå ±æã¹ãã¬ã¼ã¸ã®å ´åã¯ã¾ã£ããåé¡ãªãã®ã§ããããã¼ã«ã«ã¹ãã¬ã¼ã¸ã ã¨ãã¤ã°ã¬ã¼ã·ã§ã³ã§ãããããã§ã¸ã»ã¨ã³ãã§ããä¾ãã°ã以ä¸ã®ãªã¹ãã«ã¯æãã¦ã¾ããããä»®æ³ã¯ã©ã¹ã¿ãä½æããã¨ããè¤æ°ã®VMãåæ並è¡ã«ãããã¤ãã¾ãããã®éãã¿ã¤ãã³ã°ã«ãã£ã¦ã¯ãã¹ã±ã¸ã¥ã¼ã©ã¯åããã¹ããé¸æãããã¨ãããã¾ããããããPCIãã¹ã¹ã«ã¼ã使ãå ´åã¯ãã¹ãã«1 VMããå®è¡ã§ããªãã®ã§ãå¾ç¶ã®VMã¯ãªã½ã¼ã¹ä¸è¶³ã§ãããã¤ã«å¤±æãã¾ããããã¨ããã®VMã次ã®åè£ã®ãã¹ãã«ãã¤ã°ã¬ã¼ã·ã§ã³ãããã¨ããã®ã§ãããåè¿°ã®ããã«ãã©ã¤ããªã¹ãã¬ã¼ã¸ããã¼ã«ã«ã¹ãã¬ã¼ã¸ã ã¨ãã¤ã°ã¬ã¼ã·ã§ã³ã«å¤±æãããããã¤ãã¨ã©ã¼ã«ãªãã¾ããï¼è£è¶³ï¼PCIãã¹ã¹ã«ã¼æ¡å¼µã®æç¡ã«é¢ãããããããã¤ã«å¤±æããå ´åã«ãã®åé¡ã¯èµ·ããã¾ããï¼
å½åã¯MLãJIRAã«ãªãã¼ããã¦ãåå¿ãèãï¼ã¨ãããç¡åå¿ï¼ã§ããªãæ°æã¡ãèããã®ã§ãããå¹´æ«ã«è¿ã¥ãã«ã¤ãããããåãè¾¼ã¾ãå§ãå®å µãã¦ãã¾ããã¾ã ã¾ã æ±ãã¦ããåé¡ã¯å±±ç©ãã¦ããã®ã§ãæ¥å¹´ã¯éçºã³ãã¥ããã£ã«å¯¾ãã¦ãã£ã¨ãã¬ã¼ã³ã¹ãä¸ãã¦ããããã¨èãã¦ãã¾ããã¾ããéç¨ã§å¾ãç¥è¦ãå¥éæ©ä¼ãè¨ãã¦å ±æãããã§ããã
éç¨ä¸ã«è¸ãã å°é·ãªã¹ã
以ä¸ã«ãæã ãééããä¸å ·åãåæãã¾ãããªããæã ã¯ãã¼ã¸ã§ã³4.3ã使ã£ã¦ãããç¬èªã«éçºããSR-IOV対応パッチãåãè¾¼ãã§ãã¾ãã以ä¸ã§ãã³ãã³ãsriov-43ãã¨ããgitãã©ã³ãåãåºã¦ãã¾ãããããã¯ãã©ã¤ãã¼ããªgitãªãã¸ããªã®ãã©ã³ãã§ãã
1. cloudstack-agent jsvc gets too large virtual memory space. (JIRA #7951)
ç©çã¡ã¢ãªã®æè¼éã®å¤§ãããã·ã³ã§ãcloudstack-agent ãéå°ã«ä»®æ³ã¡ã¢ãªã確ä¿ãããããã¤ã³ã¹ã¿ã³ã¹ä½ææã«QEMUãã¡ã¢ãªã確ä¿ã§ããèµ·åã«å¤±æããå ´åããããcloudstack-agent ã®ã¡ã¢ãªä½¿ç¨éãå¶éããããããä½æããããããã¯æ¬å®¶ã«å ±åãã¦åãè¾¼ã¾ããã
ãã¹ãèµ·åæã¯åé¡ãªãããæ°æ¥çµã¤ã¨VMã®ãããã¤ã«å¤±æããã¨ããç¾è±¡ãçºçãããã¡ã¢ãªãªã¼ã¯çãçã£ãããçµå±cloudstack-agentã®åé¡ã ã£ããcloudstack-agentï¼jsvcããã»ã¹ï¼ã30GBè¶ ã®ã¡ã¢ãªã確ä¿ãã¦ããã
2. listUsageRecords generates NPEs for expunging instances (JIRA #6472)
ã¢ã«ã¦ã³ãã£ã³ã°æ å ±ãåå¾ãã API ãå¼ã³åºãéã«ãç ´æ£ããããªã½ã¼ã¹ããã㨠NullPointerException ãçºçããä¸å ·åããã£ããä¿®æ£ããããæ¢ã«æ¬å®¶ã«åãè¾¼ã¾ãã¦ãããããã®ä¿®æ£ã«ä¸ååãªé¨åããããNullPointerException ã¯çºçããªããã®ã®å¿ è¦ãªæ å ±(virtualmachineid)ãå«ã¾ããªãç¶æ ã§çµæãè¿ã£ã¦ãã¦ãããåå¾æ å ±ã« virtualmachineid ãå«ããä¿®æ£ããããä½æããæ¬å®¶ã«å ±åãã¦åãè¾¼ã¾ããã
3. Duplicate usage records when listing large number of records (JIRA #2625)/Small page sizes return duplicate results (JIRA #3401)
ã¢ã«ã¦ã³ãã£ã³ã°æ å ±ãåå¾ããéã® SQL æãé©åã§ã¯ãªãããã¼ã¸ãµã¤ãºçã®æ¡ä»¶ã«ãã£ã¦ã¯å 容ã®éè¤ããçµæãè¿ã£ã¦ããå ´åããã£ããæ¢ç¥ã®ãã°ã§ããããããåå¨ããã®ã§ãsriov-43 ãã©ã³ãã«cherry-pick ããã
4. Public key content is overridden by template's meta data when you create a instance (JIRA #6869)
ã¤ã³ã¹ã¿ã³ã¹ã® ROOT ããªã¥ã¼ã ãããã³ãã¬ã¼ããä½æããã¨ããã®ã¤ã³ã¹ã¿ã³ã¹ã®ä¸è¨ã®æ å ±ããã³ãã¬ã¼ãã®å±æ§æ å ±ã¨ãã¦è¨é²ããã¦ããã
- Password Enabled ã®å ´åãã¤ã³ã¹ã¿ã³ã¹ä½ææã« CloudStack ãçæãã root ãã¹ã¯ã¼ã
- ã¤ã³ã¹ã¿ã³ã¹ä½ææã«ãã¼ãã¢çµç±ã§æ¸¡ããã SSH å ¬ééµ
ãã®ãã³ãã¬ã¼ãããæ°ããã¤ã³ã¹ã¿ã³ã¹ãä½æããéãuser data çµç±ã§SSH å ¬ééµã渡ããã¨ãã¦ããå¼·å¶çã«ãã³ãã¬ã¼ãä»å±ã® SSH å ¬ééµãã¤ã³ã¹ã¿ã³ã¹ã«æ¸¡ããã¦ãããæ¬å®¶ã«å ±åå¾ãéçºè ï¼Harikrishna Patnalaï¼ã«ããä¿®æ£ããããä½æãããã®ã§ãsriov-43ãã©ã³ãã«cherry-pickããã
5. Attaching a data disk created on local storage to a VM is failing (JIRA Migration of a VM with volumes in local storage to another host in the same cluster is failing #6802)/Migration of a VM with volumes in local storage to another host in the same cluster is failing (JIRA #6810)
ãã©ã¤ããªã¹ãã¬ã¼ã¸ã«ãã¼ã«ã«ãã£ã¹ã¯ã使ç¨ããæ§æã§ã®ä¸å ·åã§ãããç¹å®ã®ç©çãã·ã³ã® host id ãæå®ãã¦ã¤ã³ã¹ã¿ã³ã¹ãä½æããã¨å¤±æããå ´åããã£ããstorage poolallocator ã®å¦çã«ä¸å ·åããã£ããæ¢åã®ãã°ã§ãããããããåå¨ããã®ã§ãsriov-43ãã©ã³ãã«cherry-pickããã
6. Negative ref_cnt of template(snapshot/volume)_store_ref results in out-of-range error in Mysql (JIRA #6236)
ã»ã«ã³ããªã¹ãã¬ã¼ã¸ã« S3 ã使ç¨ããæ§æã§ã®ä¸å ·åã§ãããã»ã«ã³ããªã¹ãã¼ã¸ã³ã°ã¹ãã¢ä¸ã«ä½æããããã³ãã¬ã¼ãã®ãã£ãã·ã¥ã®æä»å¶å¾¡ãã§ãã¦ããããã¿ã¤ãã³ã°ã«ãã£ã¦ãã£ãã·ã¥ã®åç §ã«ã¦ã³ã¿ã -1ã«ãªãå ´åããã£ããåç §ã«ã¦ã³ã¿ã -1 ã¨ãªã£ããã³ãã¬ã¼ãã¯ãã以å¾ä½¿ç¨ã§ããªããªãï¼ã´ãã¨ãã¦æ®ãï¼ãæ¬å®¶ã« workaround ããæ¬ããããå ±åããã¦ããããæä»å¶å¾¡ãè¡ãæ ¹æ¬çãªå¯¾å¦ã§ã¯ãªããåç §ã«ã¦ã³ã¿ã 0 ã®æã¯ãã以ä¸ãã¯ãªã¡ã³ãããªãã¨ããå¦çã追å ãããããã§ãã£ãããã ããã®ãããã«ããã°ããããä¿®æ£ãã¹ãã¡ã½ããã¨ã¯å¥ã®ã¡ã½ããã«å¦çã追å ããã¦ãããããæã ã§ä¿®æ£ããä¸ã§sriov-43ãã©ã³ãã«é©ç¨ããã
7. [S3] Parallel deployment makes reference count of a cache in nfs secondary staging store negative(-1) (JIRA #7539)
ä¸è¨ã®ãããï¼CLOUDSTACK-6236ï¼é©ç¨å¾ãå¥ã®å¦çã§åç §ã«ã¦ã³ã¿ã -1 ã«ãªãç¾è±¡ãçºçãããããæ ¹æ¬å¯¾çã¨ãã¦ãã£ãã·ã¥ã®å¦çé¨åã« lock ã«ããæä»å¶å¾¡ã追å ããããããä½æãããæ¬å®¶ã«å ±åããããã®éä»ãè¡ã£ãããæªã ã«æ¾ç½®ããã¦ããã
8. Can't create proper template from VM on S3 secondary storage environment (JIRA #7412)
ã»ã«ã³ããªã¹ãã¬ã¼ã¸ã« S3 ã使ç¨ããæ§æã§ã®ä¸å ·åã§ãããã¤ã³ã¹ã¿ã³ã¹ã®ããªã¥ã¼ã ãããã³ãã¬ã¼ããä½æããéã«ããã»ã«ã³ããªã¹ãã¼ã¸ã³ã°ã¹ãã¢ä¸ã§ããªã¥ã¼ã ããã£ãã·ã¥ãããä¸å ·åããã£ããåãã¤ã³ã¹ã¿ã³ã¹ã®ããªã¥ã¼ã ããè¤æ°åãã³ãã¬ã¼ããä½æããã¨ã2åç®ä»¥éã¯ãã©ã¤ããªã¹ãã¬ã¼ã¸ä¸ã®ãªãªã¸ãã«ã®ããªã¥ã¼ã ã§ã¯ãªããã»ã«ã³ããªã¹ãã¼ã¸ã³ã°ã¹ãã¢ä¸ã®ãã£ãã·ã¥ãããå¤ãããªã¥ã¼ã ãããã³ãã¬ã¼ããä½æããã¦ãããã¤ã³ã¹ã¿ã³ã¹ã®ããªã¥ã¼ã ãããã³ãã¬ã¼ããä½æããéã¯ãã»ã«ã³ããªã¹ãã¼ã¸ã³ã°ã¹ãã¢ã§ãã£ãã·ã¥ããªãããããä½æããããããã¯æ¬å®¶ã«å ±åãã¦åãè¾¼ã¾ããã
9. Fails to attach a volume (is made from a snapshot) to a VM with using local storage as primary storage. (JIRA #8085)
ããããã©ã¤ããªã¹ãã¬ã¼ã¸ããã¼ã«ã«ãã£ã¹ã¯ã®å ´åã«èµ·ããï¼ãã¤ã°ã¬ã¼ã·ã§ã³ãåæã¨ãã¦ãããã¨ã«èµ·å ããï¼ãã°ãã¹ãããã·ã§ããããä½æããããªã¥ã¼ã ãã¢ã¿ããã§ããªãããã°å ±åæ¸ã¿ã
ã¯ã©ã¹ã¿ç®¡çã½ããã¦ã§ã¢ã¨ã®ç¸æ§
ASGCã®ããä¸ã¤ã®ç¹å¾´ã¨ãã¦ãããããã¹ãã³ã³ä¸ã§ã¯ã©ã¦ããéç¨ãã¦ããç¹ãæãããã¾ããASGCã®ãã¼ãã¦ã§ã¢ã¯ãCray社製ã®ã¹ãã³ã³ï¼PCã¯ã©ã¹ã¿ï¼ã§ããCrayã®ã¹ãã³ã³ã«ã¯æ¨æºã®ã¯ã©ã¹ã¿ç®¡çã½ããã¦ã§ã¢ã¨ãã¦ACEãæè¼ããã¦ãããASGCã§ã使ã£ã¦ãã¾ããACEã¯ã¹ãã³ã³ã¨ãã¦éç¨ãããã¨ãåæã«ä½ãããã½ããã¦ã§ã¢ãªã®ã§ãCloudStackãªã©ã®ã¯ã©ã¦ãããã«ã¦ã§ã¢ãåãããã¨ã¯å¿µé ã«ãªãããã¹ãã§cloudstack-agentãåä½ããã¾ã§ã«çµæ§è¦å´ãã¾ããããã®æã®ã¯ã©ã¹ã¿ç®¡çã½ããã¦ã§ã¢ã¨ã¯ã©ã¦ãããã«ã¦ã§ã¢ã®è¦ªåæ§ãé«ããªãã¨ãéç¨ããå´ã¨ãã¦ã¯ã¨ã£ã¦ãããããã§ãã
ACEã§ã¯ããããã¯ã¼ã¯ãã¼ãã§ãã£ã¹ã¯ã¤ã¡ã¼ã¸ãåãã¹ãã«å±éãã¾ããã/work以å¤ã®ãã£ã¬ã¯ããªã¯read onlyã«ãªãã¾ããä¸è¬çãªã¹ãã³ã³éç¨ã§ããã°ããã§åé¡ãªãã®ã§ãããããã§ã¯CloudStackã¯åãã¾ãããå ·ä½çã«ã¯ã次ã®ãããªåé¡ããããå°éã«åé¡ãæ½°ãã¦ããã¾ããããã¡ã¤ã«ä¸ã¤ã®å¤æ´ã§ããã£ã¹ã¯ã¤ã¡ã¼ã¸ã®ä½ãç´ããå¿ è¦ã«ãªãã¾ããã
- /etc ã /var/lib/libvirt ä¸ã®ãã¡ã¤ã«ãç·¨éã§ããªãã/etc/cloudstack/agent/agent.properties ãªã©ã® cloudstack-agent ãæ¸ãæããäºãåæã¨ãã¦ãããã¡ã¤ã«ãå ¨ã¦æ´ãåºãããããã®ãã¡ã¤ã«ã /work ã«ç§»ãã·ã³ããªãã¯ãªã³ã¯ãè²¼ãã
- /etc/{cgconfig.conf,cgrules.conf} ãªã©ãCloudStack é¢é£ä»¥å¤ã®ãã¡ã¤ã«ã cloudstack-agent ãæ¸ãæããããã/work ã«ç§»ãã¦ãªã³ã¯
è¬è¾
ä¸è¨ã®åé¡ã解決ããæ¥ã ASGCã®å®å®éç¨ã«å°½åãã¦ããASGCãµãã¼ããã¼ã ã®é¢ã ï¼å°æ°ç²¾éï¼ï¼ã«æè¬ãã¦ãæ¬ã¨ã³ããªãéãã¾ãã