yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #70128
[Bug 1740431] [NEW] write_files give an error "No such file or directory" on Centos7
You have been subscribed to a public bug:
Hello
I used this cloud config :
************************************
#!cloud-config
users:
- name: jupyter
shell: /bin/bash
lock-passwd: true
sudo: ALL=(ALL) NOPASSWD:ALL
ssh-authorized-keys:
- ssh-rsa XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
write_files:
- encoding: gzip
content: !!binary |
^_<8b>^H^@^@^@^@^@^B^CÍW[wã4^P~ϯ<98>ã^^hÊibØìÓÒö<81>årºÀR<96>îS<9b>ãUì<89>#"K®$'1=ýï<8c>äK<93>Ô)´4À<83>^SkfôÍh47ßö <88>Q^H^S¼<81>«^^À-=^U%²e<8e>D^M2¦ç<89>ZÊàØó2´,a<96>^Qëö®"^YUè^Xk^DZ<9f>ð,^E£ãÓë`8^LyÆR4!ÏK;S2^R*UÃ\¦×ÁYàÄÇôãq^Dõ7,<9e><83>U`g^H^Yã^R®Îe<82>«q<9f>^LñoC²CN<8e>ö ú^@Î/ü^QáGÔ^RÅ^^T4
r^V<A^C¸²(^MWÒ4<87>¾<97>H5Ë2.S^PL¦^EÝ^Añ<99>%¯Ì^Q<96>JÏ^]<8b>K<8b><9a>Å<96>/P<94>^P+¹@ÉQZ`2^A<9c>NyìVC¸<9c>¡ÁumL#ð,^W<98>^Q^_^S^BòÚ7=àQ<9c>$[0.ØD <93>cB<80><9a>n<88>^?¯^U¡ÈÄ@ÿ½²8Qj~^L<97>¨É|&<8e>á-iT´ÙÁýj<9b>å^Q,g(A^WRº£Ø^Y70÷z<87>û¸Ý^C¸,¬Ò<9c>Q®¼<ü^Wpõ<96>^Pàg<96>òØ<8c>ûk<8b>:b¯k4/û[¬yn[é<8d>e<97>ü^G^^Ïà<97>Âæ<85>^]÷×^V]²o^KcU^Fßr<93>^KVÂO<8a>@É ^Nj×î^K¡¬BË_qs<9f>ãþ.N§^M,·<85>vÂ<8d>ÑÛ<94>=æñ^A|·b.¶÷tÑ®F¥Z^U^TÍïÔ<84>®o<8b>Ðå<90>KÍrüCñ^D>^T^BÇýÍug<88><94>ÙEI¡áþ:C<82>-á\<92>'^_ÞÔNÖ^<9d>þ^É<81>¬^UQ©ÙÛ^M\ºB<91>p<8d>1¥sIåÈ(Wù,u^KÓêj¥«]^ZÓB0Ý^TÖþ§a^~:<82>)'©¿.4±J°6^MW^X^W<96>ªg^TÓU[â~õÐæÊÄX Ár<83> <91>¦d :r}^\åÃߴ究@°<81>@kKÕ:<9c>ÙL´<92>¾53<98>i<9c><9e>^^Ö^G^]$<98>Q;.^OÁ2<9d>¢==<8c>&Ô/æ<87>g[^B'!;;<99>èªg»C^_o(¢¢Àå<86>¦ð£AmB*áz^^&¸ ^AÀ-0l\^\n6<8b>pKa«¨ú¿«õuÜpë<94>ÖëIU¥"/×[ÛþLgÕ³Ë<80>^\4 èqqÓé³n¹ý»®[ï^K{°×<9a>þ ¥>£&^L4aQx^K^S
² ÊË*CxmÇKç0º±Â=.}^Y^X´n¨ØL_3SKp^OÍFnÒ¡<89>ÈÞ^O^]KngT^G¦S<82>¢<89>ç<87><8f>ç<80>^K÷&<94>ÊÍ<9b>^?<96>Ú¯þýÔvR¡<8b>³¶Ì;êçrbò¯«ß6<9e>½è<94>ª^Z^N^?7J>^Lä{Þ<93><83>×co<98>^@p^O÷?Èê´à^?ÓMN<92><9e>A*hÞèÊ÷5fã§' ÚùnPÏ{^Væè1ÐѳPó2^U¸Û^C-ûéÈ7»Qo<9e><87>ø<88>S<9f>éÓåj'¢g=9C^\ðV<82>¬^ER^WÇ[ÞÍ^XusÚ;éàÝì ïÒâOù<9f>6^SSLh`Ûj&=^O°]b<83>ê^SÐä^X7¥ Õ/Yæí©^[À¨®ÞÍ÷±cU<8d>´f4ò^Uq^T4Í Ý^Qq9U^Z×^P2®µÒQæzC[ó^[^\¾<8e>^NÁ<82><9a><õ^Lâ<8c>Ö<9a><80>k<9b>Qû¥í¶9ï×í<84>Óik§úàZ^M^^1¸!Nüw½¶<84><9a>+M^_ü^OD(ZÜw¼<89>^Du2½fjã¢{S<83>ÑðõðUP]<80>3<99>ð§JgÌu½×ëë<88>F^VåÀ¾ìÝõþ^DÔ^X/yh^R^@^@
owner: jupyter:jupyter
path: "/home/jupyter/Notebooks/Index.ipynb"
permissions: '0555'
************************************
But I have an error in the log :
************************************
2017-12-28 20:37:54,182 - util.py[DEBUG]: Running command ['/var/lib/cloud/instance/scripts/part-001'] with allowed return codes [0] (shell=False, capture=False)
2017-12-28 20:37:54,186 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [-]
2017-12-28 20:37:54,186 - util.py[DEBUG]: Failed running /var/lib/cloud/instance/scripts/part-001 [-]
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 802, in runparts
subp(prefix + [exe_path], capture=False)
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 1849, in subp
errno=e.errno)
ProcessExecutionError: Unexpected error while running command.
Command: ['/var/lib/cloud/instance/scripts/part-001']
Exit code: -
Reason: [Errno 2] No such file or directory
Stdout: -
Stderr: -
2017-12-28 20:37:54,195 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2017-12-28 20:37:54,195 - handlers.py[DEBUG]: finish: modules-final/config-scripts-user: FAIL: running config-scripts-user with frequency once-per-instance
2017-12-28 20:37:54,195 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
2017-12-28 20:37:54,195 - util.py[DEBUG]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 777, in _run_modules
freq=freq)
File "/usr/lib/python2.7/site-packages/cloudinit/cloud.py", line 54, in run
return self._runners.run(name, functor, args, freq, clear_on_fail)
File "/usr/lib/python2.7/site-packages/cloudinit/helpers.py", line 187, in run
results = functor(*args)
File "/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_user.py", line 45, in handle
util.runparts(runparts_path)
File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 809, in runparts
% (len(failed), len(attempted)))
RuntimeError: Runparts: 1 failures in 1 attempted commands
*********************************************
Can you help me ? or is it a bug in Cloud-init ?
My version cloud-init-0.7.9-9.el7.centos.2.x86_64 (installed via yum)
Thanks
** Affects: cloud-init
Importance: Undecided
Status: New
--
write_files give an error "No such file or directory" on Centos7
https://bugs.launchpad.net/bugs/1740431
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to cloud-init.
References