nova-hyperv: Import-Module : nova-hyperv - 'CharmHelpers' was not loaded because no module was found in any module directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charms Collection |
Fix Committed
|
Undecided
|
Gabriel Samfira |
Bug Description
This is with v1 of the charm and the Juju version 1.22. The charm never goes to error state but deployer shows installing. Looking at the all machine log, the only error that's shown is failure to load CharmHelpers.
From console:
2015-03-31 05:38:41,749 [DEBUG] deployer.env: Delta unit: nova-hyperv/0 change:allocating
2015-03-31 05:39:31,753 [DEBUG] deployer.env: Delta unit: nova-hyperv/0 change:installing
2015-03-31 05:39:31,835 [DEBUG] deployer.env: Delta unit: nova-hyperv/0 change:installing
2015-03-31 05:39:46,755 [DEBUG] deployer.env: Delta unit: nova-hyperv/0 change:installing
2015-03-31 06:36:03,920 [DEBUG] deployer.env: Connecting to environment...
2015-03-31 06:36:05,198 [DEBUG] deployer.env: Connected to environment
2015-03-31 06:36:05,199 [ERROR] deployer.import: Reached deployment timeout.. exiting
2015-03-31 06:36:05,200 [ERROR] oil_ci.
Traceback (most recent call last):
File "/usr/lib/
debug=True, verbose=True)
File "/usr/lib/
importer.
File "/usr/lib/
self.
File "/usr/lib/
raise ErrorExit()
ErrorExit
2015-03-31 06:36:05,239 [INFO] oil_ci.
+ rc=1
+ echo 'Deployment returned: 1'
Deployment returned: 1
+ [[ 1 == 0 ]]
From all machines log:
machine-0: 2015-03-31 05:39:42 DEBUG juju.apiserver apiserver.go:265 <- [81] unit-nova-hyperv-0 {"RequestId"
machine-0: 2015-03-31 05:39:42 DEBUG juju.apiserver apiserver.go:272 -> [81] unit-nova-hyperv-0 1.644356ms {"RequestId"
machine-0: 2015-03-31 05:39:42 DEBUG juju.apiserver apiserver.go:265 <- [81] unit-nova-hyperv-0 {"RequestId"
machine-0: 2015-03-31 05:39:42 DEBUG juju.apiserver apiserver.go:272 -> [81] unit-nova-hyperv-0 1.723404ms {"RequestId"
machine-0: 2015-03-31 05:39:46 DEBUG juju.apiserver apiserver.go:272 -> [1B] user-admin@local 14.837853163s {"RequestId"
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
machine-0: 2015-03-31 05:39:55 DEBUG juju.apiserver apiserver.go:265 <- [81] unit-nova-hyperv-0 {"RequestId"
Not sure if this can be recreated with V2. I will update this bug if it's recreated.
I have attached the all machines debug log
summary: |
- nova-hyperv: Prodstack: Import-Module : nova-hyperv - 'CharmHelpers' was - not loaded because no module was found in any module directory + nova-hyperv: Import-Module : nova-hyperv - 'CharmHelpers' was not loaded + because no module was found in any module directory |
Changed in charms: | |
assignee: | nobody → Gabriel Samfira (gabriel-samfira) |
status: | New → Fix Committed |
With V2, this is actually re-creatable.
unit-nova- hyperv- 0[2268] : 2015-04-01 14:49:49 DEBUG juju.worker. uniter. filter filter.go:373 got unit change hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 Import-Module : The specified module 'CharmHelpers' was not loaded because no hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 valid module file was found in any module directory. hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 At C:\Juju\ lib\juju\ agents\ unit-nova- hyperv- 0\charm\ hooks\install. ps1:7 char:1 hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 + Import-Module -DisableNameChe cking CharmHelpers hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 + ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~ hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 + CategoryInfo : ResourceUnavail able: (CharmHelpers: String) [Impo hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 rt-Module], FileNotFoundExc eption hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 + FullyQualifiedE rrorId : Modules_ ModuleNotFound, Microsoft. PowerShell. Comm hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 ands.ImportModu leCommand hyperv- 0[2268] : 2015-04-01 14:49:54 INFO unit.nova- hyperv/ 0.install logger.go:40 hyperv- 0[2268] : 2015-04-01 14:49:55 INFO juju.worker. uniter. context context.go:359 handling reboot hyperv- 0[2268] : 2015-04-01 14:49:55 INFO juju.worker. uniter. operation runhook.go:92 ran "install" hook hyperv- 0[2268] : 2015-04-01 14:49:55 INFO juju.worker. uniter. operation executor.go:87 committing operation "run install hook" hyperv- 0[2268] : 2015-04-01 14:49:55 DEBUG juju.worker.uniter modes.go:417 ModeContinue exiting hyperv- 0[2268] : 2015-04-01 14:49:55 INFO juju.worker.uniter modes.go:415 ModeContinue starting hyperv- 0[2268] : 2015-04-01 14:49:55 INFO juju.worker.uniter modes.go:50 continuing after "install" hook hyperv- 0[2268] : 2015-04-01 14:49:55 DEBUG juju.worker.uniter modes.go:417 ModeContinue exiting hyperv- 0[2268] : 2015-04-01 14:49:55 INFO juju.worker.uniter modes.go:415 ModeConfigChanged starting hyperv- 0[2268] : 2015-04-01 14:49:55 INFO juju.worker. uniter. operation executor.go:66 running operation run config-changed hook hyperv- 0[2268] : 2015-04-01 14:49:55 INFO juju.worker. uniter. operation executor.go:87 preparing operation "run config-changed hook" hyperv- 0[2268] : 2015-04-01 14:49:55 DEBUG juju.worker. uniter. filter filter.go:523 discarded config event hyperv- 0[2268] : 2015-04-01 14:49:55 INFO juju.worker. uniter. operation executor.go:87 executing operation "run config-changed hook" hyperv- 0[2268] : 2015-04-01 14:50:03 INFO worker.uniter.jujuc server.go:110 running hook tool "juju-log.exe" ["Failed to import modules: The specified module 'CharmHelp...
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-
unit-nova-