Comments (7)
posted an attempt to fix
from py-az2tf.
Hi
We need to solve the first problem - please re-run capturing the debug output:
./az2tf.sh -s “id-sub” -v yes -d yes
(i need to see the json structure returned to see why that line ename=azr2[j]["name"] failed.)
The second issue looks like a temporary connection error - although using -f is complex as you must also use -r and understand the terraform dependancies - it's more a debugging tool than for general use.
from py-az2tf.
Hi Andy.
Here is the output with the error after use -d option:
# File generated by py-az2tf see: https://github.com/andyt530/py-az2tf
resource azurerm_virtual_machine production-asr__Production {
name = "Production"
location = "southcentralus"
resource_group_name = "PRODUCTION-ASR"
vm_size = "Standard_DS13_v2"
network_interface_ids = [
azurerm_network_interface.production-asr__production917.id, ]
primary_network_interface_id = azurerm_network_interface.production-asr__production917.id
delete_data_disks_on_termination = "false"
delete_os_disk_on_termination = "false"
storage_os_disk {
name = "Production-Production"
caching = "ReadWrite"
create_option = "Attach"
os_type = "Windows"
disk_size_gb = "127"
vhd_uri = "https://gestionixproductionasr.blob.core.windows.net/asr-d70f02924194cad3ab/copied-%7B4182950656%7D.vhd"
}
tags = {
}
}
# azurerm_virtual_machine_extension
7
Traceback (most recent call last):
File "../../scripts/az2tf.py", line 382, in <module>
azurerm_virtual_machine_extension.azurerm_virtual_machine_extension(crf,cde,crg,headers,requests,sub,json,az2tfmess,cldurl)
File "/py-az2tf/scripts/azurerm_virtual_machine_extension.py", line 51, in azurerm_virtual_machine_extension
print(json.dumps(azr2[j], indent=4, separators=(',', ': ')))
IndexError: list index out of range
IndexError: list index out of range
Error in az2tf.py
from py-az2tf.
just posted another update - this will give me a little more debug output than the above
If you could please re-run the debug with that and post here.
from py-az2tf.
Andy, it seems I got the same output:
"provisioningState": "Succeeded"
}
}
# File generated by py-az2tf see: https://github.com/andyt530/py-az2tf
resource azurerm_virtual_machine production-asr__Production {
name = "Production"
location = "southcentralus"
resource_group_name = "PRODUCTION-ASR"
vm_size = "Standard_DS13_v2"
network_interface_ids = [
azurerm_network_interface.production-asr__production917.id, ]
primary_network_interface_id = azurerm_network_interface.production-asr__production917.id
delete_data_disks_on_termination = "false"
delete_os_disk_on_termination = "false"
storage_os_disk {
name = "Production-Production"
caching = "ReadWrite"
create_option = "Attach"
os_type = "Windows"
disk_size_gb = "127"
vhd_uri = "https://gestionixproductionasr.blob.core.windows.net/asr-d70f02924194cad3ab/copied-%7B4182950656%7D.vhd"
}
tags = {
}
}
# azurerm_virtual_machine_extension
7
[]
Traceback (most recent call last):
File "../../scripts/az2tf.py", line 382, in <module>
azurerm_virtual_machine_extension.azurerm_virtual_machine_extension(crf,cde,crg,headers,requests,sub,json,az2tfmess,cldurl)
File "/py-az2tf/scripts/azurerm_virtual_machine_extension.py", line 52, in azurerm_virtual_machine_extension
ename=azr2[j]["name"]
IndexError: list index out of range
IndexError: list index out of range
Error in az2tf.py
from py-az2tf.
Not quite - the [] after the 7 tells me something !
from py-az2tf.
Hey Andy, It works!!!
Now I have another issue but it seems something different maybe it could be something with my subscription id or user role. Here is the output just to confirm. Thanks for the fix.
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: //subscriptions/xxxx-xxxx-xxxx-xxxx-xxxxxxx/resourceGroups/boa/providers/Microsoft.Web/sites/gx-boa-ms-users/config/appsettings/list?api-version=2018-02-01 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b5f08c18>: Failed to establish a new connection: [Errno -3] Try again',))
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b5f08c18>: Failed to establish a new connection: [Errno -3] Try again
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: //subscriptions/xxxxx-xxxx-xxxx-xxxxx-xxxxxxxxx/resourceGroups/boa/providers/Microsoft.Web/sites/gx-boa-ms-users/config/appsettings/list?api-version=2018-02-01 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b5f08c18>: Failed to establish a new connection: [Errno -3] Try again',))
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: //subscriptions/xxxx-xxx-xxxx-xxxx-xxxxxxxxxx/resourceGroups/boa/providers/Microsoft.Web/sites/gx-boa-ms-users/config/appsettings/list?api-version=2018-02-01 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa7b5f08c18>: Failed to establish a new connection: [Errno -3] Try again',))
Error in az2tf.py
from py-az2tf.
Related Issues (20)
- Invalid escape sequence HOT 3
- Error in az2tf.py Unicode for Policy info HOT 3
- ValueError malformed string in ast.py HOT 5
- Support for other Azure Clouds HOT 3
- Support for Python 3 HOT 1
- Warning: "network_security_group_id": [DEPRECATED] Use the `azurerm_subnet_network_security_group_association` resource instead. HOT 1
- Traffic manager endpoint issue with app service as type HOT 23
- Error HOT 17
- Error naming slots resources HOT 1
- The argument "fqdns" was already set at fqdns = ["x.x.x.x"] HOT 2
- Note in resource "azurerm_management_lock" HOT 22
- azurerm_virtual_network_gateway_connection issue HOT 7
- Azure Role Definition Import fails when role definition has no description HOT 1
- terraform validate fails because storage profile block is never created in vmss import HOT 1
- KeyError for loadBalancerBackendAddressPools in vmss HOT 1
- Invalid multi-line string error HOT 4
- Azurerm 2.0 fails to validate HOT 1
- Tool isnt working
- Still active? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-az2tf.