terraform-routeros / terraform-provider-routeros

Terraform Provider for Mikrotik RouterOS
Mozilla Public License 2.0
165 stars 46 forks source link

api bug ip/firewall/addr/list #489

Closed cmdorexe closed 3 weeks ago

cmdorexe commented 4 weeks ago
          it's bug `ip/firewall/addr/list/move`
module.dev-gw0.routeros_move_items.fw_addr_list: Creating...
2024-06-07T17:56:22.631+0300 [INFO]  Starting apply for module.dev-gw0.routeros_move_items.fw_addr_list
2024-06-07T17:56:22.632+0300 [DEBUG] module.dev-gw0.routeros_move_items.fw_addr_list: applying the planned Create change
2024-06-07T17:56:22.633+0300 [DEBUG] provider.terraform-provider-routeros_v1.54.1: request body:  ip/firewall/addr/list/move =destination=*CBE =numbers=*8,*1D,
*1E,*20,*21,*22,*23,*25,*27,*28,*29,*2A,*2B,*2C,*2D,*2E,*2F,*30,*31,*32,*33,*34,*35,*38,*3A,*3B,*3C,*3D,*3E,*9E,*9F,*A0,*A1,*A2,*A3,*A4,*A5,*A6,*A7,*A8,*A9,*
AA,*AB,*AC,*AD,*15B,*15C,*15D,*15E,*160,*161,*162,*163,*164,*165,*166,*16A,*16B,*16D,*16E,*170,*171,*174,*175,*176,*1CA,*1CB,*1CC,*1CD,*1CE,*1CF,*1D0,*1D2,*1
D3,*1D4,*1D5,*1D6,*1D7,*1D8,*1D9,*1DA,*1DB,*1DC,*1DF,*1E0,*236,*23C,*23D,*2E6,*516,*517,*518,*560,*561,*562,*8B5,*B59,*C4C: tf_rpc=Configure @caller=github.c
om/terraform-routeros/terraform-provider-routeros/routeros/log.go:27 @module=routeros tf_provider_addr=terraform-routeros/routeros tf_req_id=aca9dcde-6244-b0
58-e325-9d4d2e4bc2e2 timestamp="2024-06-07T17:56:22.633+0300"
2024-06-07T17:56:22.648+0300 [DEBUG] provider.terraform-provider-routeros_v1.54.1: An error was encountered while sending a PUT request to the API: from Rout
erOS device: no such command prefix: @module=routeros tf_provider_addr=terraform-routeros/routeros tf_req_id=5408fede-1b2c-652c-71ea-21537d18bb26 tf_resource
_type=routeros_move_items tf_rpc=ApplyResourceChange @caller=github.com/terraform-routeros/terraform-provider-routeros/routeros/log.go:27 timestamp="2024-06-
07T17:56:22.648+0300"
2024-06-07T17:56:22.648+0300 [ERROR] provider.terraform-provider-routeros_v1.54.1: Response contains error diagnostic: diagnostic_detail="" diagnostic_summar
y="from RouterOS device: no such command prefix" tf_provider_addr=terraform-routeros/routeros tf_resource_type=routeros_move_items @module=sdk.proto @caller=
github.com/hashicorp/terraform-plugin-go@v0.23.0/tfprotov5/internal/diag/diagnostics.go:58 tf_req_id=5408fede-1b2c-652c-71ea-21537d18bb26 tf_rpc=ApplyResourc
eChange diagnostic_severity=ERROR tf_proto_version=5.6 timestamp="2024-06-07T17:56:22.648+0300"
2024-06-07T17:56:22.649+0300 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2024-06-07T17:56:22.649+0300 [ERROR] vertex "module.dev-gw0.routeros_move_items.fw_addr_list" error: from RouterOS device: no such command prefix
╷
│ Error: from RouterOS device: no such command prefix
│ 
│   with module.dev-gw0.routeros_move_items.fw_addr_list,
│   on dev/network/gw0/firewall_addr_list.tf line 130, in resource "routeros_move_items" "fw_addr_list":
│  130: resource "routeros_move_items" "fw_addr_list" {
│  
╵
2024-06-07T17:56:22.659+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: E
OF"
2024-06-07T17:56:22.659+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/some.local.fqdn/terraform-routeros/routeros/1.54.1/linu
x_amd64/terraform-provider-routeros_v1.54.1 pid=110832
2024-06-07T17:56:22.659+0300 [DEBUG] provider: plugin exited

Originally posted by @cmdorexe in https://github.com/terraform-routeros/terraform-provider-routeros/issues/488#issuecomment-2155034711

vaerh commented 3 weeks ago

The move function is not supported by ROS for this resource.