Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2019-10-22 05:58:38+00:00 :: nvcloudinit:OnStart() :: NVCloudInit starting
- 2019-10-22 05:58:38+00:00 :: ISOHelper:getCDROMDrive() :: Identified a CDROM ISO based drive as : D:\
- 2019-10-22 05:58:43+00:00 :: nvcloudinit:isAWSEnv() :: Exception trying to query AWS metadata :System.Net.WebException: The operation has timed out
- at System.Net.HttpWebRequest.GetResponse()
- at nvcloudinit.nvcloudinit.isAWSEnv()
- 2019-10-22 05:58:43+00:00 :: nvcloudinit:isAVAEnv() :: Exception trying to query XenStore :System.Management.ManagementException: Not found
- at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
- at System.Management.ManagementObject.Initialize(Boolean getObject)
- at System.Management.ManagementBaseObject.get_ClassName()
- at System.Management.ManagementClass.GetInstances(EnumerationOptions options)
- at System.Management.ManagementClass.GetInstances()
- at nvcloudinit.XenStoreSession..ctor()
- at nvcloudinit.nvcloudinit.isAVAEnv()
- 2019-10-22 05:58:43+00:00 :: nvcloudinit:OnStart() :: No http endpoint found but found ISO with no metadata file , so assuming physical host and not generating new metadata/userdata files
- 2019-10-22 05:58:43+00:00 :: UserDataHelper:IsMIMESection() :: Checking if [disk-network-info] is a MIME section in userdata.
- 2019-10-22 05:58:43+00:00 :: UserDataHelper:GetUserData() :: Getting userdata [C:\Asgard\conf\userdata.txt]
- 2019-10-22 05:58:43+00:00 :: UserDataHelper:GetUserData() :: Failed getting userdata file.
- 2019-10-22 05:58:43+00:00 :: UserDataHelper:IsMIMESection() :: Failed checking if [disk-network-info] is a MIME section in userdata.
- 2019-10-22 05:58:43+00:00 :: RegistryWriter:ReadNVCRegistry() :: Getting regkey value for the nvcloudinit @Reboot
- 2019-10-22 05:58:43+00:00 :: RegistryWriter:ReadNVCRegistry() :: The registry key doesnt exist SOFTWARE\NvCloudInit @Reboot
- 2019-10-22 05:58:43+00:00 :: RegistryWriter:ReadNVCRegistry() :: Object reference not set to an instance of an object.
- 2019-10-22 05:58:43+00:00 :: RegistryWriter:FlipDeadGWRegistry() :: Setting regkey for @DeadGWDetectDefault
- 2019-10-22 05:58:43+00:00 :: NetworkHelper:disableDeadGWDetection() :: Succesfully disabled dead gateway in the network
- 2019-10-22 05:58:43+00:00 :: NetworkHelper:disableNetBt() :: Ensuring TcpipNetbiosOptions is set to: 2
- 2019-10-22 05:58:48+00:00 :: nvcloudinit:isAWSEnv() :: Exception trying to query AWS metadata :System.Net.WebException: The operation has timed out
- at System.Net.HttpWebRequest.GetResponse()
- at nvcloudinit.nvcloudinit.isAWSEnv()
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Setting secondary IP based on interface name....
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Name: Ethernet
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Description: Red Hat VirtIO Ethernet Adapter
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: ===============================
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Interface type: Ethernet
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Operational status: Up
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: MAC: 525400123456
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Gateways:
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: 10.0.2.2
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: IP Addresses:
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: fe80::d9c:b69b:81a9:b109%12 0.0.0.0
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: 10.0.2.15 255.255.255.0
- 2019-10-22 05:58:50+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Adapter has DHCP Ip allocation config, so cannot process secondary Ips
- 2019-10-22 05:58:50+00:00 :: ActivationHelper:getLicenseStatus() :: Determining Windows licensing details and status
- 2019-10-22 05:58:51+00:00 :: ActivationHelper:getLicenseStatus() :: Windows(R), ServerStandardEval edition: Windows(R) Operating System, TIMEBASED_EVAL channel
- 2019-10-22 05:58:51+00:00 :: ActivationHelper:getLicenseStatus() :: License status: Licensed
- 2019-10-22 05:58:51+00:00 :: ActivationHelper:getLicenseStatus() :: Grace period remaining: 119d 3h
- 2019-10-22 05:58:51+00:00 :: ActivationHelper:getLicenseStatus() :: Name:
- 2019-10-22 05:58:51+00:00 :: ActivationHelper:getLicenseStatus() :: Port:0
- 2019-10-22 05:58:51+00:00 :: nvcloudinit:OnStart() :: STATUS : Windows is already activated
- 2019-10-22 05:58:51+00:00 :: nvcloudinit:OnStart() :: No domain specified in userdata, so no action for joining the domain
- 2019-10-22 05:58:51+00:00 :: ActivationHelper:ExecuteCommandSync() :: Executing command : [diskpart /s state.txt > outputdiskList.txt]
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDOUT :
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDERR :
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: Return code : 0
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:initializeDisk() :: Checking Disk 0 ...
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: Executing command : [diskpart /s state.txt > outputpartitionList.txt]
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDOUT :
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDERR :
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: Return code : 0
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() :: -------------------Logging diskpart partion output -------------------
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() :: Microsoft DiskPart version 6.3.9600
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() :: Copyright (C) 1999-2013 Microsoft Corporation.
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() :: On computer: BASEGAME-NGN-WK
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() :: Disk 0 is now the selected disk.
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() :: Partition ### Type Size Offset
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() :: ------------- ---------------- ------- -------
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() :: Partition 1 Primary 2000 MB 1024 KB
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:checkPartition() :: --------------------------------------------------------------------
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:initializeDisk() :: Disk 0 allready initialized, skipping disk
- 2019-10-22 05:58:58+00:00 :: nvcloudinit:OnStart() :: Completed initializing disk
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:extendAllVolumes() :: Skipping extend for volume 'A'
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:extendAllVolumes() :: Extending volume 'C' on unallocated space
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:extendVolume() :: Extending volume 'C'
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: Executing command : [diskpart /s state.txt]
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDOUT : Microsoft DiskPart version 6.3.9600
- Copyright (C) 1999-2013 Microsoft Corporation.
- On computer: BASEGAME-NGN-WK
- Volume 2 is the selected volume.
- DiskPart successfully extended the volume.
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDERR :
- 2019-10-22 05:58:58+00:00 :: ActivationHelper:ExecuteCommandSync() :: Return code : 0
- 2019-10-22 05:58:58+00:00 :: DiskInitializationHelper:extendAllVolumes() :: Skipping extend for volume 'D'
- 2019-10-22 05:58:58+00:00 :: nvcloudinit:OnStart() :: Completed extending volumes
- 2019-10-22 05:58:58+00:00 :: InitHelper:GetInitScriptList() :: List of init scripts to execute in the order below :
- 2019-10-22 05:58:58+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat
- 2019-10-22 05:58:58+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat
- 2019-10-22 05:58:58+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat
- 2019-10-22 05:58:58+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat
- 2019-10-22 05:58:58+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat
- 2019-10-22 05:58:58+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat'
- 2019-10-22 05:58:59+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>call c:\Asgard\conf\asgard_env.bat
- REM --- Registering instance and generating CD config file
- C:\Asgard\nvcloudinit\scripts\per-boot>c:\python27\python.exe C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py || GOTO :ERROR
- 2019-10-22 17:58:59,954 DEBUG __main__ - Attempting to acquire lock at: C:\asgard\conf\AWS-CodeDeploy-Agent\lock.txt
- 2019-10-22 17:58:59,954 DEBUG __main__ - Lock acquired: C:\asgard\conf\AWS-CodeDeploy-Agent\lock.txt
- 2019-10-22 17:58:59,954 INFO __main__ - Querying the CS for my CD props
- 2019-10-22 17:58:59,954 DEBUG asgard_util_local.local - Reading file contents from: C:\Asgard\conf\userdata.txt
- 2019-10-22 17:58:59,954 DEBUG asgard_util_local.local - WARNING: Returning none for get_file_contents of C:\Asgard\conf\userdata.txt, because the file doesn't exist
- 2019-10-22 17:58:59,954 DEBUG asgard_util_local.local - Reading file contents from: C:\Asgard\conf\userdata.txt
- 2019-10-22 17:58:59,954 DEBUG asgard_util_local.local - WARNING: Returning none for get_file_contents of C:\Asgard\conf\userdata.txt, because the file doesn't exist
- 2019-10-22 17:58:59,954 INFO __main__ - Successfully deleted C:\asgard\conf\AWS-CodeDeploy-Agent\lock.txt
- 2019-10-22 17:58:59,954 ERROR __main__ - Unhandled top level exception
- Traceback (most recent call last):
- File "C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py", line 591, in <module>
- rc = main(sub_name, new_cs_data_file_path)
- File "C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py", line 513, in main
- cd_props = get_my_cd_props()
- File "C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py", line 126, in get_my_cd_props
- new_mappings = Local.get_codedeploy_mappings(user="code_deploy") or {}
- File "c:\asgard\framework-python\asgard_util_local\local.py", line 284, in get_codedeploy_mappings
- return Local.read_from_cs(user, "vm_mapping_aws_codedeploy", throw_on_missing_root_key=False, version=version)
- File "c:\asgard\framework-python\asgard_util_local\local.py", line 112, in read_from_cs
- return Local._read_from_cs(path_to_get, cs_creds=cs_creds, cs_users=[cs_user], version=version, throw_on_missing_root_key=throw_on_missing_root_key)
- File "c:\asgard\framework-python\asgard_util_local\local.py", line 121, in _read_from_cs
- raise Exception("Config service credentials could not be found")
- Exception: Config service credentials could not be found
- 2019-10-22 17:58:59,954 INFO __main__ - ngn_codedeploy_register exiting with RC -1
- REM --- ERROR: Failed to configure or start the CodeDeploy-Agent. start.bat exiting with RC 1
- 2019-10-22 05:58:59+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat' :
- 2019-10-22 05:58:59+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat' : 1
- 2019-10-22 05:58:59+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat'
- 2019-10-22 05:59:01+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>call c:\Asgard\conf\asgard_env.bat
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_DIR=C:\Asgard\conf\ZabbixAgent
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_TARGET_FILE=C:\Asgard\conf\ZabbixAgent\zabbix_agentd.conf
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_TARGET_DIR=C:\Asgard\services\ZabbixAgent
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_SCRIPT=C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_SRC_FILE=C:\Asgard\services\ZabbixAgent\zabbix_agentd.conf
- C:\Asgard\nvcloudinit\scripts\per-boot>REM --- Generate the config file
- C:\Asgard\nvcloudinit\scripts\per-boot>c:\python27\python.exe C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py --input-template C:\Asgard\services\ZabbixAgent\zabbix_agentd.conf --output-template C:\Asgard\conf\ZabbixAgent\zabbix_agentd.conf
- Creating logger...
- 2019-10-22 17:59:00,438 INFO __main__ - Starting
- 2019-10-22 17:59:01,502 INFO __main__ - Detected that this VM is hosted in NGN
- 2019-10-22 17:59:01,502 ERROR __main__ - Unhandled top level exception
- Traceback (most recent call last):
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 493, in <module>
- rc = main(options.input_template, options.output_template)
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 434, in main
- config_vals['[[HOSTNAME]]'] = get_zabbix_hostname()
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 418, in get_zabbix_hostname
- (machine_type, ip) = get_machine_type_and_primary_ip()
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 365, in get_machine_type_and_primary_ip
- vm_type_info = read_vm_type_info()
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 257, in read_vm_type_info
- vm_type_from_userdata = read_userdata_section('vm-type-info')
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 233, in read_userdata_section
- raise IOError("Missing required dependency {}".format(path_to_userdata))
- IOError: Missing required dependency C:\Asgard\conf\userdata.txt
- 2019-10-22 17:59:01,502 INFO __main__ - Done, returning -1
- C:\Asgard\nvcloudinit\scripts\per-boot>SET RC=-1
- "ERROR: Failed to populate config file"
- 2019-10-22 05:59:01+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat' : c:\python27\lib\site-packages\setuptools-22.0.0-py2.7.egg\pkg_resources\__init__.py:1268: UserWarning: C:\Windows\system32\config\systemprofile\AppData\Roaming\Python-Eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
- 2019-10-22 05:59:01+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat' : -1
- 2019-10-22 05:59:01+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat'
- 2019-10-22 05:59:01+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat' : "common_env_on_boot.bat starting"
- "common_env_on_boot.bat calling C:\Python27\python.exe "C:\Asgard\services\CommonEnvironment\bin\setup_environment.py""
- C:\Asgard\nvcloudinit\scripts\per-boot>C:\Python27\python.exe "C:\Asgard\services\CommonEnvironment\bin\setup_environment.py" || GOTO :SHOWERR
- setup_environment starting ...
- Detected platform:
- Windows ......... : True
- Strict Windows OS : True
- Cygwin .......... : False
- Posix ........... : False
- Linux ........... : False
- Checking file: C:\Asgard\services\CommonEnvironment\resources\windows\ag_env.bat ...
- All required files validated
- Setting up common environment ...
- Reading SDB value from zone property cache
- WARNING: Failed to lookup AG_STATEDB from subnet-info and ZoneProperties. Leaving any currently set value for AG_STATEDB intact
- Creating common directories ...
- C:\Asgard already exists; skipping
- C:\Asgard\logs already exists; skipping
- C:\Asgard\services already exists; skipping
- C:\Asgard\conf already exists; skipping
- Saving environment ({'AG_HOME': 'C:\\Asgard', 'AG_LOGS': 'C:\\Asgard\\logs'}) to: C:\Asgard\conf\asgard_env.bat ...
- Wrote environment setup file: C:\Asgard\conf\asgard_env.bat
- C:\Asgard\nvcloudinit\scripts\per-boot>GOTO :DONE
- ---- common_env_on_boot.bat was successful
- 2019-10-22 05:59:01+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat' :
- 2019-10-22 05:59:01+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat' : 0
- 2019-10-22 05:59:01+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat'
- 2019-10-22 05:59:02+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>REM
- C:\Asgard\nvcloudinit\scripts\per-boot>REM Enables the Asgard OSL LogPruner
- C:\Asgard\nvcloudinit\scripts\per-boot>REM
- C:\Asgard\nvcloudinit\scripts\per-boot>SET PYTHON_PATH=C:\Python27\python.exe
- C:\Asgard\nvcloudinit\scripts\per-boot>IF EXIST C:\Python27\python.exe GOTO FOUND_PYTHON
- C:\Asgard\nvcloudinit\scripts\per-boot>IF NOT "C:\Asgard" == "" GOTO SCHEDULE
- C:\Asgard\nvcloudinit\scripts\per-boot>SET INSTALL_DIR=C:\Asgard\services\LogPruner
- C:\Asgard\nvcloudinit\scripts\per-boot>SET TASK_NAME="Asgard OSL LogPruner"
- C:\Asgard\nvcloudinit\scripts\per-boot>REM Create the task
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /Query /TN "Asgard OSL LogPruner" || GOTO CREATE_TASK
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /Create /RU SYSTEM /ST 00:00 /SC HOURLY /MO 2 /TN "Asgard OSL LogPruner" /TR "\"C:\Python27\python.exe\" C:\Asgard\services\LogPruner\prunelogs_win.py 2>&1" || GOTO :EOF
- SUCCESS: The scheduled task "Asgard OSL LogPruner" has successfully been created.
- 2019-10-22 05:59:02+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat' : ERROR: The system cannot find the file specified.
- 2019-10-22 05:59:02+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat' : 0
- 2019-10-22 05:59:02+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat'
- 2019-10-22 05:59:02+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>c:\python27\python.exe C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py
- ****** Executing command : net stop nxlog
- ****** Return code of the command: 0
- ****** Stdout of the execution :
- The nxlog service was stopped successfully.
- C:\Asgard
- Falling back to see if nvcloudinit based config can be read to get update server location
- 2019-10-22 05:59:02+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat' : Traceback (most recent call last):
- File "C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py", line 147, in <module>
- log_address = getLogServer()
- File "C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py", line 44, in getLogServer
- log_server = getUserdataValue("LoggingServerAddresses")
- File "C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py", line 112, in getUserdataValue
- print str(traceback.print_exc())
- NameError: global name 'traceback' is not defined
- 2019-10-22 05:59:02+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat' : 1
- 2019-10-22 05:59:02+00:00 :: InitHelper:ProcessInitScripts() :: Completed processing/executing init scripts found in the system
- 2019-10-22 05:59:02+00:00 :: RegistryWriter:WriteNVCRegistry() :: Setting regkey for nvcloudinit @Execution
- 2019-10-22 05:59:02+00:00 :: nvcloudinit:OnStart() :: NVCloudInit stopping
- 2019-10-22 05:59:02+00:00 :: nvcloudinit:OnStop() :: Service Stopping
- 2019-10-23 12:21:48+00:00 :: nvcloudinit:OnStart() :: NVCloudInit starting
- 2019-10-23 12:21:54+00:00 :: nvcloudinit:isAWSEnv() :: Exception trying to query AWS metadata :System.Net.WebException: The operation has timed out
- at System.Net.HttpWebRequest.GetResponse()
- at nvcloudinit.nvcloudinit.isAWSEnv()
- 2019-10-23 12:21:55+00:00 :: nvcloudinit:isAVAEnv() :: Exception trying to query XenStore :System.Management.ManagementException: Not found
- at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
- at System.Management.ManagementObject.Initialize(Boolean getObject)
- at System.Management.ManagementBaseObject.get_ClassName()
- at System.Management.ManagementClass.GetInstances(EnumerationOptions options)
- at System.Management.ManagementClass.GetInstances()
- at nvcloudinit.XenStoreSession..ctor()
- at nvcloudinit.nvcloudinit.isAVAEnv()
- 2019-10-23 12:21:55+00:00 :: nvcloudinit:OnStart() :: No http or ISO endpoint found , so assuming physical host and not generating new metadata/userdata files
- 2019-10-23 12:21:55+00:00 :: UserDataHelper:IsMIMESection() :: Checking if [disk-network-info] is a MIME section in userdata.
- 2019-10-23 12:21:55+00:00 :: UserDataHelper:GetUserData() :: Getting userdata [C:\Asgard\conf\userdata.txt]
- 2019-10-23 12:21:55+00:00 :: UserDataHelper:GetUserData() :: Failed getting userdata file.
- 2019-10-23 12:21:55+00:00 :: UserDataHelper:IsMIMESection() :: Failed checking if [disk-network-info] is a MIME section in userdata.
- 2019-10-23 12:21:55+00:00 :: RegistryWriter:ReadNVCRegistry() :: Getting regkey value for the nvcloudinit @Reboot
- 2019-10-23 12:21:55+00:00 :: RegistryWriter:ReadNVCRegistry() :: The registry key doesnt exist SOFTWARE\NvCloudInit @Reboot
- 2019-10-23 12:21:55+00:00 :: RegistryWriter:ReadNVCRegistry() :: Object reference not set to an instance of an object.
- 2019-10-23 12:22:00+00:00 :: nvcloudinit:isAWSEnv() :: Exception trying to query AWS metadata :System.Net.WebException: The operation has timed out
- at System.Net.HttpWebRequest.GetResponse()
- at nvcloudinit.nvcloudinit.isAWSEnv()
- 2019-10-23 12:22:00+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Setting secondary IP based on interface name....
- 2019-10-23 12:22:00+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Name: Ethernet 2
- 2019-10-23 12:22:00+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Description: Intel(R) PRO/1000 MT Network Connection
- 2019-10-23 12:22:00+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: =======================================
- 2019-10-23 12:22:01+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Interface type: Ethernet
- 2019-10-23 12:22:01+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Operational status: Up
- 2019-10-23 12:22:01+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: MAC: 525400291C19
- 2019-10-23 12:22:01+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Gateways:
- 2019-10-23 12:22:01+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: 192.168.122.1
- 2019-10-23 12:22:01+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: IP Addresses:
- 2019-10-23 12:22:01+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: fe80::4cd5:9b18:75f8:66dd%14 0.0.0.0
- 2019-10-23 12:22:01+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: 192.168.122.40 255.255.255.0
- 2019-10-23 12:22:01+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Adapter has DHCP Ip allocation config, so cannot process secondary Ips
- 2019-10-23 12:22:01+00:00 :: ActivationHelper:getLicenseStatus() :: Determining Windows licensing details and status
- 2019-10-23 12:22:01+00:00 :: ActivationHelper:getLicenseStatus() :: Windows(R), ServerStandardEval edition: Windows(R) Operating System, TIMEBASED_EVAL channel
- 2019-10-23 12:22:01+00:00 :: ActivationHelper:getLicenseStatus() :: License status: Licensed
- 2019-10-23 12:22:01+00:00 :: ActivationHelper:getLicenseStatus() :: Grace period remaining: 118d 21h
- 2019-10-23 12:22:01+00:00 :: ActivationHelper:getLicenseStatus() :: Name:
- 2019-10-23 12:22:01+00:00 :: ActivationHelper:getLicenseStatus() :: Port:0
- 2019-10-23 12:22:01+00:00 :: nvcloudinit:OnStart() :: STATUS : Windows is already activated
- 2019-10-23 12:22:01+00:00 :: nvcloudinit:OnStart() :: No domain specified in userdata, so no action for joining the domain
- 2019-10-23 12:22:01+00:00 :: ActivationHelper:ExecuteCommandSync() :: Executing command : [diskpart /s state.txt > outputdiskList.txt]
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDOUT :
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDERR :
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: Return code : 0
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:initializeDisk() :: Checking Disk 0 ...
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: Executing command : [diskpart /s state.txt > outputpartitionList.txt]
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDOUT :
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDERR :
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: Return code : 0
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() :: -------------------Logging diskpart partion output -------------------
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() :: Microsoft DiskPart version 6.3.9600
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() :: Copyright (C) 1999-2013 Microsoft Corporation.
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() :: On computer: BASEGAME-NGN-WK
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() :: Disk 0 is now the selected disk.
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() :: Partition ### Type Size Offset
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() :: ------------- ---------------- ------- -------
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() :: Partition 1 Primary 2000 MB 1024 KB
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:checkPartition() :: --------------------------------------------------------------------
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:initializeDisk() :: Disk 0 allready initialized, skipping disk
- 2019-10-23 12:22:02+00:00 :: nvcloudinit:OnStart() :: Completed initializing disk
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:extendAllVolumes() :: Extending volume 'C' on unallocated space
- 2019-10-23 12:22:02+00:00 :: DiskInitializationHelper:extendVolume() :: Extending volume 'C'
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: Executing command : [diskpart /s state.txt]
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDOUT : Microsoft DiskPart version 6.3.9600
- Copyright (C) 1999-2013 Microsoft Corporation.
- On computer: BASEGAME-NGN-WK
- Volume 1 is the selected volume.
- There is not enough usable free space on specified disk(s) to extend the
- volume.
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDERR :
- 2019-10-23 12:22:02+00:00 :: ActivationHelper:ExecuteCommandSync() :: Return code : -2147024809
- 2019-10-23 12:22:02+00:00 :: nvcloudinit:OnStart() :: Completed extending volumes
- 2019-10-23 12:22:02+00:00 :: InitHelper:GetInitScriptList() :: List of init scripts to execute in the order below :
- 2019-10-23 12:22:02+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat
- 2019-10-23 12:22:02+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat
- 2019-10-23 12:22:02+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat
- 2019-10-23 12:22:02+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat
- 2019-10-23 12:22:02+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat
- 2019-10-23 12:22:02+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat'
- 2019-10-23 12:22:03+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>call c:\Asgard\conf\asgard_env.bat
- REM --- Registering instance and generating CD config file
- C:\Asgard\nvcloudinit\scripts\per-boot>c:\python27\python.exe C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py || GOTO :ERROR
- 2019-10-23 00:22:03,812 DEBUG __main__ - Attempting to acquire lock at: C:\asgard\conf\AWS-CodeDeploy-Agent\lock.txt
- 2019-10-23 00:22:03,812 DEBUG __main__ - Lock acquired: C:\asgard\conf\AWS-CodeDeploy-Agent\lock.txt
- 2019-10-23 00:22:03,812 INFO __main__ - Querying the CS for my CD props
- 2019-10-23 00:22:03,812 DEBUG asgard_util_local.local - Reading file contents from: C:\Asgard\conf\userdata.txt
- 2019-10-23 00:22:03,812 DEBUG asgard_util_local.local - WARNING: Returning none for get_file_contents of C:\Asgard\conf\userdata.txt, because the file doesn't exist
- 2019-10-23 00:22:03,812 DEBUG asgard_util_local.local - Reading file contents from: C:\Asgard\conf\userdata.txt
- 2019-10-23 00:22:03,812 DEBUG asgard_util_local.local - WARNING: Returning none for get_file_contents of C:\Asgard\conf\userdata.txt, because the file doesn't exist
- 2019-10-23 00:22:03,812 INFO __main__ - Successfully deleted C:\asgard\conf\AWS-CodeDeploy-Agent\lock.txt
- 2019-10-23 00:22:03,812 ERROR __main__ - Unhandled top level exception
- Traceback (most recent call last):
- File "C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py", line 591, in <module>
- rc = main(sub_name, new_cs_data_file_path)
- File "C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py", line 513, in main
- cd_props = get_my_cd_props()
- File "C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py", line 126, in get_my_cd_props
- new_mappings = Local.get_codedeploy_mappings(user="code_deploy") or {}
- File "c:\asgard\framework-python\asgard_util_local\local.py", line 284, in get_codedeploy_mappings
- return Local.read_from_cs(user, "vm_mapping_aws_codedeploy", throw_on_missing_root_key=False, version=version)
- File "c:\asgard\framework-python\asgard_util_local\local.py", line 112, in read_from_cs
- return Local._read_from_cs(path_to_get, cs_creds=cs_creds, cs_users=[cs_user], version=version, throw_on_missing_root_key=throw_on_missing_root_key)
- File "c:\asgard\framework-python\asgard_util_local\local.py", line 121, in _read_from_cs
- raise Exception("Config service credentials could not be found")
- Exception: Config service credentials could not be found
- 2019-10-23 00:22:03,812 INFO __main__ - ngn_codedeploy_register exiting with RC -1
- REM --- ERROR: Failed to configure or start the CodeDeploy-Agent. start.bat exiting with RC 1
- 2019-10-23 12:22:03+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat' :
- 2019-10-23 12:22:03+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat' : 1
- 2019-10-23 12:22:03+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat'
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>call c:\Asgard\conf\asgard_env.bat
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_DIR=C:\Asgard\conf\ZabbixAgent
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_TARGET_FILE=C:\Asgard\conf\ZabbixAgent\zabbix_agentd.conf
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_TARGET_DIR=C:\Asgard\services\ZabbixAgent
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_SCRIPT=C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_SRC_FILE=C:\Asgard\services\ZabbixAgent\zabbix_agentd.conf
- C:\Asgard\nvcloudinit\scripts\per-boot>REM --- Generate the config file
- C:\Asgard\nvcloudinit\scripts\per-boot>c:\python27\python.exe C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py --input-template C:\Asgard\services\ZabbixAgent\zabbix_agentd.conf --output-template C:\Asgard\conf\ZabbixAgent\zabbix_agentd.conf
- Creating logger...
- 2019-10-23 00:22:04,013 INFO __main__ - Starting
- 2019-10-23 00:22:05,122 INFO __main__ - Detected that this VM is hosted in NGN
- 2019-10-23 00:22:05,122 ERROR __main__ - Unhandled top level exception
- Traceback (most recent call last):
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 493, in <module>
- rc = main(options.input_template, options.output_template)
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 434, in main
- config_vals['[[HOSTNAME]]'] = get_zabbix_hostname()
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 418, in get_zabbix_hostname
- (machine_type, ip) = get_machine_type_and_primary_ip()
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 365, in get_machine_type_and_primary_ip
- vm_type_info = read_vm_type_info()
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 257, in read_vm_type_info
- vm_type_from_userdata = read_userdata_section('vm-type-info')
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 233, in read_userdata_section
- raise IOError("Missing required dependency {}".format(path_to_userdata))
- IOError: Missing required dependency C:\Asgard\conf\userdata.txt
- 2019-10-23 00:22:05,122 INFO __main__ - Done, returning -1
- C:\Asgard\nvcloudinit\scripts\per-boot>SET RC=-1
- "ERROR: Failed to populate config file"
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat' : c:\python27\lib\site-packages\setuptools-22.0.0-py2.7.egg\pkg_resources\__init__.py:1268: UserWarning: C:\Windows\system32\config\systemprofile\AppData\Roaming\Python-Eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat' : -1
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat'
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat' : "common_env_on_boot.bat starting"
- "common_env_on_boot.bat calling C:\Python27\python.exe "C:\Asgard\services\CommonEnvironment\bin\setup_environment.py""
- C:\Asgard\nvcloudinit\scripts\per-boot>C:\Python27\python.exe "C:\Asgard\services\CommonEnvironment\bin\setup_environment.py" || GOTO :SHOWERR
- setup_environment starting ...
- Detected platform:
- Windows ......... : True
- Strict Windows OS : True
- Cygwin .......... : False
- Posix ........... : False
- Linux ........... : False
- Checking file: C:\Asgard\services\CommonEnvironment\resources\windows\ag_env.bat ...
- All required files validated
- Setting up common environment ...
- Reading SDB value from zone property cache
- WARNING: Failed to lookup AG_STATEDB from subnet-info and ZoneProperties. Leaving any currently set value for AG_STATEDB intact
- Creating common directories ...
- C:\Asgard already exists; skipping
- C:\Asgard\logs already exists; skipping
- C:\Asgard\services already exists; skipping
- C:\Asgard\conf already exists; skipping
- Saving environment ({'AG_HOME': 'C:\\Asgard', 'AG_LOGS': 'C:\\Asgard\\logs'}) to: C:\Asgard\conf\asgard_env.bat ...
- Wrote environment setup file: C:\Asgard\conf\asgard_env.bat
- C:\Asgard\nvcloudinit\scripts\per-boot>GOTO :DONE
- ---- common_env_on_boot.bat was successful
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat' :
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat' : 0
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat'
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>REM
- C:\Asgard\nvcloudinit\scripts\per-boot>REM Enables the Asgard OSL LogPruner
- C:\Asgard\nvcloudinit\scripts\per-boot>REM
- C:\Asgard\nvcloudinit\scripts\per-boot>SET PYTHON_PATH=C:\Python27\python.exe
- C:\Asgard\nvcloudinit\scripts\per-boot>IF EXIST C:\Python27\python.exe GOTO FOUND_PYTHON
- C:\Asgard\nvcloudinit\scripts\per-boot>IF NOT "C:\Asgard" == "" GOTO SCHEDULE
- C:\Asgard\nvcloudinit\scripts\per-boot>SET INSTALL_DIR=C:\Asgard\services\LogPruner
- C:\Asgard\nvcloudinit\scripts\per-boot>SET TASK_NAME="Asgard OSL LogPruner"
- C:\Asgard\nvcloudinit\scripts\per-boot>REM Create the task
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /Query /TN "Asgard OSL LogPruner" || GOTO CREATE_TASK
- Folder: \
- TaskName Next Run Time Status
- ======================================== ====================== ===============
- Asgard OSL LogPruner 10/23/2019 2:00:00 AM Ready
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /End /TN "Asgard OSL LogPruner" || GOTO :EOF
- SUCCESS: The scheduled task "Asgard OSL LogPruner" has been terminated successfully.
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /Delete /F /TN "Asgard OSL LogPruner" || GOTO :EOF
- SUCCESS: The scheduled task "Asgard OSL LogPruner" was successfully deleted.
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /Create /RU SYSTEM /ST 00:00 /SC HOURLY /MO 2 /TN "Asgard OSL LogPruner" /TR "\"C:\Python27\python.exe\" C:\Asgard\services\LogPruner\prunelogs_win.py 2>&1" || GOTO :EOF
- SUCCESS: The scheduled task "Asgard OSL LogPruner" has successfully been created.
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat' :
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat' : 0
- 2019-10-23 12:22:05+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat'
- 2019-10-23 12:22:06+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>c:\python27\python.exe C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py
- ****** Executing command : net stop nxlog
- ****** Return code of the command: 0
- ****** Stdout of the execution :
- The nxlog service was stopped successfully.
- C:\Asgard
- Falling back to see if nvcloudinit based config can be read to get update server location
- 2019-10-23 12:22:06+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat' : Traceback (most recent call last):
- File "C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py", line 147, in <module>
- log_address = getLogServer()
- File "C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py", line 44, in getLogServer
- log_server = getUserdataValue("LoggingServerAddresses")
- File "C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py", line 112, in getUserdataValue
- print str(traceback.print_exc())
- NameError: global name 'traceback' is not defined
- 2019-10-23 12:22:06+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat' : 1
- 2019-10-23 12:22:06+00:00 :: InitHelper:ProcessInitScripts() :: Completed processing/executing init scripts found in the system
- 2019-10-23 12:22:06+00:00 :: RegistryWriter:WriteNVCRegistry() :: Setting regkey for nvcloudinit @Execution
- 2019-10-23 12:22:06+00:00 :: nvcloudinit:OnStart() :: NVCloudInit stopping
- 2019-10-23 12:22:06+00:00 :: nvcloudinit:OnStop() :: Service Stopping
- 2019-10-23 12:27:11+00:00 :: nvcloudinit:OnStart() :: NVCloudInit starting
- 2019-10-23 12:27:17+00:00 :: nvcloudinit:isAWSEnv() :: Exception trying to query AWS metadata :System.Net.WebException: The operation has timed out
- at System.Net.HttpWebRequest.GetResponse()
- at nvcloudinit.nvcloudinit.isAWSEnv()
- 2019-10-23 12:27:17+00:00 :: nvcloudinit:isAVAEnv() :: Exception trying to query XenStore :System.Management.ManagementException: Not found
- at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
- at System.Management.ManagementObject.Initialize(Boolean getObject)
- at System.Management.ManagementBaseObject.get_ClassName()
- at System.Management.ManagementClass.GetInstances(EnumerationOptions options)
- at System.Management.ManagementClass.GetInstances()
- at nvcloudinit.XenStoreSession..ctor()
- at nvcloudinit.nvcloudinit.isAVAEnv()
- 2019-10-23 12:27:17+00:00 :: nvcloudinit:OnStart() :: No http or ISO endpoint found , so assuming physical host and not generating new metadata/userdata files
- 2019-10-23 12:27:17+00:00 :: UserDataHelper:IsMIMESection() :: Checking if [disk-network-info] is a MIME section in userdata.
- 2019-10-23 12:27:17+00:00 :: UserDataHelper:GetUserData() :: Getting userdata [C:\Asgard\conf\userdata.txt]
- 2019-10-23 12:27:17+00:00 :: UserDataHelper:GetUserData() :: Failed getting userdata file.
- 2019-10-23 12:27:17+00:00 :: UserDataHelper:IsMIMESection() :: Failed checking if [disk-network-info] is a MIME section in userdata.
- 2019-10-23 12:27:17+00:00 :: RegistryWriter:ReadNVCRegistry() :: Getting regkey value for the nvcloudinit @Reboot
- 2019-10-23 12:27:17+00:00 :: RegistryWriter:ReadNVCRegistry() :: The registry key doesnt exist SOFTWARE\NvCloudInit @Reboot
- 2019-10-23 12:27:17+00:00 :: RegistryWriter:ReadNVCRegistry() :: Object reference not set to an instance of an object.
- 2019-10-23 12:27:22+00:00 :: nvcloudinit:isAWSEnv() :: Exception trying to query AWS metadata :System.Net.WebException: The operation has timed out
- at System.Net.HttpWebRequest.GetResponse()
- at nvcloudinit.nvcloudinit.isAWSEnv()
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Setting secondary IP based on interface name....
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Name: Ethernet 2
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Description: Intel(R) PRO/1000 MT Network Connection
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: =======================================
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Interface type: Ethernet
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Operational status: Up
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: MAC: 525400291C19
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Gateways:
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: 192.168.122.1
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: IP Addresses:
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: fe80::4cd5:9b18:75f8:66dd%14 0.0.0.0
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: 192.168.122.40 255.255.255.0
- 2019-10-23 12:27:22+00:00 :: NetworkHelper:setSecondayNetworkIPsBasedInt() :: Adapter has DHCP Ip allocation config, so cannot process secondary Ips
- 2019-10-23 12:27:22+00:00 :: ActivationHelper:getLicenseStatus() :: Determining Windows licensing details and status
- 2019-10-23 12:27:22+00:00 :: ActivationHelper:getLicenseStatus() :: Windows(R), ServerStandardEval edition: Windows(R) Operating System, TIMEBASED_EVAL channel
- 2019-10-23 12:27:22+00:00 :: ActivationHelper:getLicenseStatus() :: License status: Licensed
- 2019-10-23 12:27:22+00:00 :: ActivationHelper:getLicenseStatus() :: Grace period remaining: 118d 21h
- 2019-10-23 12:27:22+00:00 :: ActivationHelper:getLicenseStatus() :: Name:
- 2019-10-23 12:27:22+00:00 :: ActivationHelper:getLicenseStatus() :: Port:0
- 2019-10-23 12:27:22+00:00 :: nvcloudinit:OnStart() :: STATUS : Windows is already activated
- 2019-10-23 12:27:22+00:00 :: nvcloudinit:OnStart() :: No domain specified in userdata, so no action for joining the domain
- 2019-10-23 12:27:22+00:00 :: ActivationHelper:ExecuteCommandSync() :: Executing command : [diskpart /s state.txt > outputdiskList.txt]
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDOUT :
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDERR :
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: Return code : 0
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:initializeDisk() :: Checking Disk 0 ...
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: Executing command : [diskpart /s state.txt > outputpartitionList.txt]
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDOUT :
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDERR :
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: Return code : 0
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() :: -------------------Logging diskpart partion output -------------------
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() :: Microsoft DiskPart version 6.3.9600
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() :: Copyright (C) 1999-2013 Microsoft Corporation.
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() :: On computer: BASEGAME-NGN-WK
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() :: Disk 0 is now the selected disk.
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() ::
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() :: Partition ### Type Size Offset
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() :: ------------- ---------------- ------- -------
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() :: Partition 1 Primary 2000 MB 1024 KB
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:checkPartition() :: --------------------------------------------------------------------
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:initializeDisk() :: Disk 0 allready initialized, skipping disk
- 2019-10-23 12:27:24+00:00 :: nvcloudinit:OnStart() :: Completed initializing disk
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:extendAllVolumes() :: Extending volume 'C' on unallocated space
- 2019-10-23 12:27:24+00:00 :: DiskInitializationHelper:extendVolume() :: Extending volume 'C'
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: Executing command : [diskpart /s state.txt]
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDOUT : Microsoft DiskPart version 6.3.9600
- Copyright (C) 1999-2013 Microsoft Corporation.
- On computer: BASEGAME-NGN-WK
- Volume 1 is the selected volume.
- There is not enough usable free space on specified disk(s) to extend the
- volume.
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: STDERR :
- 2019-10-23 12:27:24+00:00 :: ActivationHelper:ExecuteCommandSync() :: Return code : -2147024809
- 2019-10-23 12:27:24+00:00 :: nvcloudinit:OnStart() :: Completed extending volumes
- 2019-10-23 12:27:24+00:00 :: InitHelper:GetInitScriptList() :: List of init scripts to execute in the order below :
- 2019-10-23 12:27:24+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat
- 2019-10-23 12:27:24+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat
- 2019-10-23 12:27:24+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat
- 2019-10-23 12:27:24+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat
- 2019-10-23 12:27:24+00:00 :: InitHelper:GetInitScriptList() :: C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat
- 2019-10-23 12:27:24+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat'
- 2019-10-23 12:27:25+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>call c:\Asgard\conf\asgard_env.bat
- REM --- Registering instance and generating CD config file
- C:\Asgard\nvcloudinit\scripts\per-boot>c:\python27\python.exe C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py || GOTO :ERROR
- 2019-10-23 00:27:25,454 DEBUG __main__ - Attempting to acquire lock at: C:\asgard\conf\AWS-CodeDeploy-Agent\lock.txt
- 2019-10-23 00:27:25,454 DEBUG __main__ - Lock acquired: C:\asgard\conf\AWS-CodeDeploy-Agent\lock.txt
- 2019-10-23 00:27:25,454 INFO __main__ - Querying the CS for my CD props
- 2019-10-23 00:27:25,454 DEBUG asgard_util_local.local - Reading file contents from: C:\Asgard\conf\userdata.txt
- 2019-10-23 00:27:25,454 DEBUG asgard_util_local.local - WARNING: Returning none for get_file_contents of C:\Asgard\conf\userdata.txt, because the file doesn't exist
- 2019-10-23 00:27:25,454 DEBUG asgard_util_local.local - Reading file contents from: C:\Asgard\conf\userdata.txt
- 2019-10-23 00:27:25,454 DEBUG asgard_util_local.local - WARNING: Returning none for get_file_contents of C:\Asgard\conf\userdata.txt, because the file doesn't exist
- 2019-10-23 00:27:25,470 INFO __main__ - Successfully deleted C:\asgard\conf\AWS-CodeDeploy-Agent\lock.txt
- 2019-10-23 00:27:25,470 ERROR __main__ - Unhandled top level exception
- Traceback (most recent call last):
- File "C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py", line 591, in <module>
- rc = main(sub_name, new_cs_data_file_path)
- File "C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py", line 513, in main
- cd_props = get_my_cd_props()
- File "C:\Asgard\services\AWS-CodeDeploy-Agent\deploy\ngn_codedeploy_register.py", line 126, in get_my_cd_props
- new_mappings = Local.get_codedeploy_mappings(user="code_deploy") or {}
- File "c:\asgard\framework-python\asgard_util_local\local.py", line 284, in get_codedeploy_mappings
- return Local.read_from_cs(user, "vm_mapping_aws_codedeploy", throw_on_missing_root_key=False, version=version)
- File "c:\asgard\framework-python\asgard_util_local\local.py", line 112, in read_from_cs
- return Local._read_from_cs(path_to_get, cs_creds=cs_creds, cs_users=[cs_user], version=version, throw_on_missing_root_key=throw_on_missing_root_key)
- File "c:\asgard\framework-python\asgard_util_local\local.py", line 121, in _read_from_cs
- raise Exception("Config service credentials could not be found")
- Exception: Config service credentials could not be found
- 2019-10-23 00:27:25,470 INFO __main__ - ngn_codedeploy_register exiting with RC -1
- REM --- ERROR: Failed to configure or start the CodeDeploy-Agent. start.bat exiting with RC 1
- 2019-10-23 12:27:25+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat' :
- 2019-10-23 12:27:25+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-AWS-CodeDeploy-Agent.bat' : 1
- 2019-10-23 12:27:25+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat'
- 2019-10-23 12:27:26+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>call c:\Asgard\conf\asgard_env.bat
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_DIR=C:\Asgard\conf\ZabbixAgent
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_TARGET_FILE=C:\Asgard\conf\ZabbixAgent\zabbix_agentd.conf
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_TARGET_DIR=C:\Asgard\services\ZabbixAgent
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_SCRIPT=C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py
- C:\Asgard\nvcloudinit\scripts\per-boot>SET ZAB_AGENT_CONF_SRC_FILE=C:\Asgard\services\ZabbixAgent\zabbix_agentd.conf
- C:\Asgard\nvcloudinit\scripts\per-boot>REM --- Generate the config file
- C:\Asgard\nvcloudinit\scripts\per-boot>c:\python27\python.exe C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py --input-template C:\Asgard\services\ZabbixAgent\zabbix_agentd.conf --output-template C:\Asgard\conf\ZabbixAgent\zabbix_agentd.conf
- Creating logger...
- 2019-10-23 00:27:25,627 INFO __main__ - Starting
- 2019-10-23 00:27:26,688 INFO __main__ - Detected that this VM is hosted in NGN
- 2019-10-23 00:27:26,688 ERROR __main__ - Unhandled top level exception
- Traceback (most recent call last):
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 493, in <module>
- rc = main(options.input_template, options.output_template)
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 434, in main
- config_vals['[[HOSTNAME]]'] = get_zabbix_hostname()
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 418, in get_zabbix_hostname
- (machine_type, ip) = get_machine_type_and_primary_ip()
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 365, in get_machine_type_and_primary_ip
- vm_type_info = read_vm_type_info()
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 257, in read_vm_type_info
- vm_type_from_userdata = read_userdata_section('vm-type-info')
- File "C:\Asgard\services\ZabbixAgent\generate_zabbix_conf.py", line 233, in read_userdata_section
- raise IOError("Missing required dependency {}".format(path_to_userdata))
- IOError: Missing required dependency C:\Asgard\conf\userdata.txt
- 2019-10-23 00:27:26,688 INFO __main__ - Done, returning -1
- C:\Asgard\nvcloudinit\scripts\per-boot>SET RC=-1
- "ERROR: Failed to populate config file"
- 2019-10-23 12:27:26+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat' : c:\python27\lib\site-packages\setuptools-22.0.0-py2.7.egg\pkg_resources\__init__.py:1268: UserWarning: C:\Windows\system32\config\systemprofile\AppData\Roaming\Python-Eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
- 2019-10-23 12:27:26+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\009-ZabbixAgent.bat' : -1
- 2019-10-23 12:27:26+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat'
- 2019-10-23 12:27:26+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat' : "common_env_on_boot.bat starting"
- "common_env_on_boot.bat calling C:\Python27\python.exe "C:\Asgard\services\CommonEnvironment\bin\setup_environment.py""
- C:\Asgard\nvcloudinit\scripts\per-boot>C:\Python27\python.exe "C:\Asgard\services\CommonEnvironment\bin\setup_environment.py" || GOTO :SHOWERR
- setup_environment starting ...
- Detected platform:
- Windows ......... : True
- Strict Windows OS : True
- Cygwin .......... : False
- Posix ........... : False
- Linux ........... : False
- Checking file: C:\Asgard\services\CommonEnvironment\resources\windows\ag_env.bat ...
- All required files validated
- Setting up common environment ...
- Reading SDB value from zone property cache
- WARNING: Failed to lookup AG_STATEDB from subnet-info and ZoneProperties. Leaving any currently set value for AG_STATEDB intact
- Creating common directories ...
- C:\Asgard already exists; skipping
- C:\Asgard\logs already exists; skipping
- C:\Asgard\services already exists; skipping
- C:\Asgard\conf already exists; skipping
- Saving environment ({'AG_HOME': 'C:\\Asgard', 'AG_LOGS': 'C:\\Asgard\\logs'}) to: C:\Asgard\conf\asgard_env.bat ...
- Wrote environment setup file: C:\Asgard\conf\asgard_env.bat
- C:\Asgard\nvcloudinit\scripts\per-boot>GOTO :DONE
- ---- common_env_on_boot.bat was successful
- 2019-10-23 12:27:26+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat' :
- 2019-10-23 12:27:26+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\010-common_env_on_boot.bat' : 0
- 2019-10-23 12:27:26+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat'
- 2019-10-23 12:27:27+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>REM
- C:\Asgard\nvcloudinit\scripts\per-boot>REM Enables the Asgard OSL LogPruner
- C:\Asgard\nvcloudinit\scripts\per-boot>REM
- C:\Asgard\nvcloudinit\scripts\per-boot>SET PYTHON_PATH=C:\Python27\python.exe
- C:\Asgard\nvcloudinit\scripts\per-boot>IF EXIST C:\Python27\python.exe GOTO FOUND_PYTHON
- C:\Asgard\nvcloudinit\scripts\per-boot>IF NOT "C:\Asgard" == "" GOTO SCHEDULE
- C:\Asgard\nvcloudinit\scripts\per-boot>SET INSTALL_DIR=C:\Asgard\services\LogPruner
- C:\Asgard\nvcloudinit\scripts\per-boot>SET TASK_NAME="Asgard OSL LogPruner"
- C:\Asgard\nvcloudinit\scripts\per-boot>REM Create the task
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /Query /TN "Asgard OSL LogPruner" || GOTO CREATE_TASK
- Folder: \
- TaskName Next Run Time Status
- ======================================== ====================== ===============
- Asgard OSL LogPruner 10/23/2019 2:00:00 AM Ready
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /End /TN "Asgard OSL LogPruner" || GOTO :EOF
- SUCCESS: The scheduled task "Asgard OSL LogPruner" has been terminated successfully.
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /Delete /F /TN "Asgard OSL LogPruner" || GOTO :EOF
- SUCCESS: The scheduled task "Asgard OSL LogPruner" was successfully deleted.
- C:\Asgard\nvcloudinit\scripts\per-boot>schtasks /Create /RU SYSTEM /ST 00:00 /SC HOURLY /MO 2 /TN "Asgard OSL LogPruner" /TR "\"C:\Python27\python.exe\" C:\Asgard\services\LogPruner\prunelogs_win.py 2>&1" || GOTO :EOF
- SUCCESS: The scheduled task "Asgard OSL LogPruner" has successfully been created.
- 2019-10-23 12:27:27+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat' :
- 2019-10-23 12:27:27+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\161-LogPruner.bat' : 0
- 2019-10-23 12:27:27+00:00 :: InitHelper:ExecuteScript() :: Executing init script 'C:\Asgard\nvcloudinit\scripts\per-boot\C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat'
- 2019-10-23 12:27:27+00:00 :: InitHelper:ExecuteScript() :: STDOUT of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat' :
- C:\Asgard\nvcloudinit\scripts\per-boot>c:\python27\python.exe C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py
- ****** Executing command : net stop nxlog
- ****** Return code of the command: 0
- ****** Stdout of the execution :
- The nxlog service was stopped successfully.
- C:\Asgard
- Falling back to see if nvcloudinit based config can be read to get update server location
- 2019-10-23 12:27:27+00:00 :: InitHelper:ExecuteScript() :: STDERR of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat' : Traceback (most recent call last):
- File "C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py", line 147, in <module>
- log_address = getLogServer()
- File "C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py", line 44, in getLogServer
- log_server = getUserdataValue("LoggingServerAddresses")
- File "C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.py", line 112, in getUserdataValue
- print str(traceback.print_exc())
- NameError: global name 'traceback' is not defined
- 2019-10-23 12:27:27+00:00 :: InitHelper:ExecuteScript() :: RETCODE of running script 'C:\Asgard\nvcloudinit\scripts\per-boot\config_nxlog.bat' : 1
- 2019-10-23 12:27:27+00:00 :: InitHelper:ProcessInitScripts() :: Completed processing/executing init scripts found in the system
- 2019-10-23 12:27:27+00:00 :: RegistryWriter:WriteNVCRegistry() :: Setting regkey for nvcloudinit @Execution
- 2019-10-23 12:27:27+00:00 :: nvcloudinit:OnStart() :: NVCloudInit stopping
- 2019-10-23 12:27:27+00:00 :: nvcloudinit:OnStop() :: Service Stopping
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement