Skip to content

Instantly share code, notes, and snippets.

View mlcooper's full-sized avatar

Mitchell Cooper mlcooper

  • 18:27 (UTC -05:00)
View GitHub Profile
@mlcooper
mlcooper / gist:d305108a5c76b27020ad3fe2176c0846
Created August 15, 2017 14:43
Upgrade of selinux-policy package; docker service error
Aug 15 10:28:05 server-foo kernel: SELinux: Context unconfined_u:system_r:docker_t:s0-s0:c0.c1023 became invalid (unmapped).
Aug 15 10:28:05 server-foo kernel: SELinux: Context unconfined_u:system_r:spc_t:s0-s0:c0.c1023 became invalid (unmapped).
Aug 15 10:28:05 server-foo kernel: SELinux: Context unconfined_u:unconfined_r:docker_home_t:s0-s0:c0.c1023 became invalid (unmapped).
Aug 15 10:28:06 server-foo kernel: SELinux: Context unconfined_u:system_r:docker_home_t:s0-s0:c0.c1023 became invalid (unmapped).
Aug 15 10:28:06 server-foo kernel: SELinux: Context system_u:object_r:docker_var_lib_t:s0 became invalid (unmapped).
Aug 15 10:28:06 server-foo kernel: SELinux: Context system_u:unconfined_r:docker_home_t:s0-s0:c0.c1023 became invalid (unmapped).
Aug 15 10:28:06 server-foo kernel: SELinux: Context system_u:system_r:docker_t:s0-s0:c0.c1023 became invalid (unmapped).
Aug 15 10:28:06 server-foo kernel: SELinux: Context system_u:system_r:spc_t:s0-s0:c0.c1023 became invalid (unmapped).
Aug 15 10:28:06 ser
@mlcooper
mlcooper / gist:a753bdd928d364f595811c200ff9c1b1
Created November 19, 2018 19:21
terraform import panic - azurerm_virtual_machine
2018-11-19T14:14:53.080-0500 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4:
Error: azurerm_virtual_machine.main[0] (import id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/BusinessIntelligence/providers/microsoft.compute/VirtualMachines/biprodintrunvm01): 1 error(s) occurred:
* import azurerm_virtual_machine.main[0] result: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/BusinessIntelligence/providers/microsoft.compute/VirtualMachines/biprodintrunvm01: azurerm_virtual_machine.main: unexpected EOF
Releasing state lock. This may take a few moments...
panic: runtime error: invalid memory address or nil pointer dereference
2018-11-19T14:14:53.080-0500 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x1cc194d]
2018-11-19T14:14:53.080-0500 [DEBUG] plugin.terraform-provider-azurerm_v1.19.0_x4:
@mlcooper
mlcooper / gist:bf10bdda372681f352825f78dabe267b
Created December 17, 2018 16:44
Terraform not updating attribute in azurerm_virtual_machine resource in remote state file
2018-12-17T11:40:07.745-0500 [DEBUG] plugin.terraform-provider-azurerm_v1.20.0_x4: 2018/12/17 11:40:07 [INFO] preparing arguments for Azure ARM Virtual Machine creation.
2018-12-17T11:40:07.751-0500 [DEBUG] plugin.terraform-provider-azurerm_v1.20.0_x4: 2018/12/17 11:40:07 [DEBUG] Locking "azurerm_virtual_machine.biprodintrunvm01"
2018-12-17T11:40:07.751-0500 [DEBUG] plugin.terraform-provider-azurerm_v1.20.0_x4: 2018/12/17 11:40:07 [DEBUG] Locked "azurerm_virtual_machine.biprodintrunvm01"
2018-12-17T11:40:07.752-0500 [DEBUG] plugin.terraform-provider-azurerm_v1.20.0_x4: 2018/12/17 11:40:07 [DEBUG] AzureRM Request:
2018-12-17T11:40:07.752-0500 [DEBUG] plugin.terraform-provider-azurerm_v1.20.0_x4: PUT /subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/BusinessIntelligence/providers/Microsoft.Compute/virtualMachines/biprodintrunvm01?api-version=2018-06-01 HTTP/1.1
2018-12-17T11:40:07.752-0500 [DEBUG] plugin.terraform-provider-azurerm_v1.20.0_x4: Host: management.azure.com
2018-12-17T11:40:07.752-05
azurerm_eventhub_namespace.activity_logs: Creating...
2021-01-09T12:58:46.965-0500 [DEBUG] plugin.terraform-provider-azurerm_v2.42.0_x5:
2021-01-09T12:58:46.965-0500 [DEBUG] plugin.terraform-provider-azurerm_v2.42.0_x5: {"sku":{"name":"Dedicated","capacity":1},"id":"/subscriptions/46084a1c-2265-49d8-a116-99f71a756b5d/resourceGroups/EventHubs/providers/Microsoft.EventHub/clusters/daml-eventhub-cluster-centralus","name":"daml-eventhub-cluster-centralus","type":"Microsoft.EventHub/clusters","location":"centralus","tags":{"managed_by":"terraform","project":"<redacted_name> Azure Managed Logging (DAML)","repo":"https://gitlab.<redacted_name>.com/etech-splunk/terraform-azure-logs-to-splunk"},"properties":{"createdAt":"2021-01-09T17:58:44.627Z","updatedAt":"2021-01-09T17:58:44.627Z","metricId":"PROD-DM2-578"}}
_cluster.daml
2021/01/09 12:58:46 [WARN] Provider "registry.terraform.io/hashicorp/azurerm" produced an invalid plan for azurerm_eventhub_namespace.activity_logs, but we are tolerating it because it is using t
azurerm_eventhub_namespace.activity_logs: Creating...
,"Southeast Asia","Switzerland North","Switzerland West","UAE North","UK South","UK West","West Europe","West US 2","West US"],"apiVersions":["2020-04-30"]},{"resourceType":"OpenShiftClusters","locations":["Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Germany West Central","Japan East","Japan West","Korea Central","North Central US","North Europe","Norway East","South Africa North","South Central US","Southeast Asia","Switzerland North","Switzerland West","UAE North","UK South","UK West","West Europe","West US 2","West US"],"apiVersions":["2020-04-30"],"capabilities":"SystemAssignedResourceIdentity"},{"resourceType":"operations","locations":[],"apiVersions":["2020-04-30","2019-12-31-preview"]}],"registrationState":"NotRegistered"},{"id":"/subscriptions/46084a1c-2265-49d8-a116-99f71a756b5d/providers/Microsoft.ResourceConnector","namespace"
Error: Plugin did not respond
│ with module.dns-forwarding.azurerm_orchestrated_virtual_machine_scale_set.dns_forwarding,
│ on ../terraform-azure-dnsforwarding/main.tf line 17, in resource "azurerm_orchestrated_virtual_machine_scale_set" "dns_forwarding":
│ 17: resource "azurerm_orchestrated_virtual_machine_scale_set" "dns_forwarding" {
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
Stack trace from the terraform-provider-azurerm_v2.95.0_x5 plugin: