2025-04-14 11:24:00,216 - INFO - Domain Default found not creating
2025-04-14 11:24:00,410 - INFO - Project ctest-TestBasicPolicy-65632027 not found, creating it
2025-04-14 11:24:00,929 - INFO - Created Project:ctest-TestBasicPolicy-65632027, ID : 2634638b-4427-425b-bd15-6d74b030ae33
2025-04-14 11:24:03,101 - INFO - ================================================================================
2025-04-14 11:24:03,101 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 11:24:03,101 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-04-14 11:24:03,365 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-04-14 11:24:03,365 - INFO - Initial checks done. Running the testcase now
2025-04-14 11:24:03,365 - INFO -
2025-04-14 11:24:04,001 - DEBUG - Response for create_network : {'network': {'id': 'd4ccaac2-4314-441a-b4d3-109600ea0548', 'name': 'ctest-vn-31004241', 'tenant_id': '2634638b4427425bbd156d74b030ae33', 'project_id': '2634638b4427425bbd156d74b030ae33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65632027', 'ctest-vn-31004241'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 11:24:04,216 - DEBUG - Response for create_subnet : {'subnet': {'id': '19fcd312-82b1-4f42-b7fa-de1b5b49122a', 'name': '', 'tenant_id': '2634638b4427425bbd156d74b030ae33', 'network_id': 'd4ccaac2-4314-441a-b4d3-109600ea0548', 'ip_version': 4, 'cidr': '66.126.37.192/26', 'allocation_pools': [{'start': '66.126.37.194', 'end': '66.126.37.254'}], 'gateway_ip': '66.126.37.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.126.37.194', 'tags': [], 'project_id': '2634638b4427425bbd156d74b030ae33'}}
2025-04-14 11:24:04,239 - INFO - Created VN ctest-vn-31004241
2025-04-14 11:24:04,295 - DEBUG - VN ctest-vn-31004241 UUID is d4ccaac2-4314-441a-b4d3-109600ea0548
2025-04-14 11:24:04,638 - DEBUG - Response for create_network : {'network': {'id': 'b2867e9e-693b-44bd-9f8b-26998f0d0cf7', 'name': 'ctest-vn-41162133', 'tenant_id': '2634638b4427425bbd156d74b030ae33', 'project_id': '2634638b4427425bbd156d74b030ae33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65632027', 'ctest-vn-41162133'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 11:24:04,888 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d6ef283-b6dc-4c05-87b4-805fde50bdd6', 'name': '', 'tenant_id': '2634638b4427425bbd156d74b030ae33', 'network_id': 'b2867e9e-693b-44bd-9f8b-26998f0d0cf7', 'ip_version': 4, 'cidr': '49.91.104.128/26', 'allocation_pools': [{'start': '49.91.104.130', 'end': '49.91.104.190'}], 'gateway_ip': '49.91.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.91.104.130', 'tags': [], 'project_id': '2634638b4427425bbd156d74b030ae33'}}
2025-04-14 11:24:04,911 - INFO - Created VN ctest-vn-41162133
2025-04-14 11:24:04,967 - DEBUG - VN ctest-vn-41162133 UUID is b2867e9e-693b-44bd-9f8b-26998f0d0cf7
2025-04-14 11:24:05,108 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-31004241, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-41162133, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-04-14 11:24:05,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4ccaac2-4314-441a-b4d3-109600ea0548', 'name': 'ctest-vn-31004241', 'tenant_id': '2634638b4427425bbd156d74b030ae33', 'project_id': '2634638b4427425bbd156d74b030ae33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19fcd312-82b1-4f42-b7fa-de1b5b49122a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65632027', 'ctest-vn-31004241'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65632027', 'ctest-policy-allow-all-36810027']], 'subnet_ipam': [{'subnet_cidr': '66.126.37.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 11:24:05,712 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2867e9e-693b-44bd-9f8b-26998f0d0cf7', 'name': 'ctest-vn-41162133', 'tenant_id': '2634638b4427425bbd156d74b030ae33', 'project_id': '2634638b4427425bbd156d74b030ae33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d6ef283-b6dc-4c05-87b4-805fde50bdd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65632027', 'ctest-vn-41162133'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65632027', 'ctest-policy-allow-all-36810027']], 'subnet_ipam': [{'subnet_cidr': '49.91.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 11:24:05,900 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-14 11:24:06,251 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-14 11:24:06,285 - DEBUG - Requesting: http://10.0.0.38:8082/domain/84d1dce4-a45b-4b89-9d52-153918f22131
2025-04-14 11:24:06,302 - DEBUG - Requesting: http://10.0.0.38:8082/project/2634638b-4427-425b-bd15-6d74b030ae33
2025-04-14 11:24:06,383 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ccaac2-4314-441a-b4d3-109600ea0548
2025-04-14 11:24:06,397 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ccaac2-4314-441a-b4d3-109600ea0548
2025-04-14 11:24:06,411 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/056d003b-820e-4f8e-83f9-8934aba13e62
2025-04-14 11:24:06,423 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/056d003b-820e-4f8e-83f9-8934aba13e62
2025-04-14 11:24:06,432 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e8fbda58-6605-4624-b15b-b9fc81f5e2e3
2025-04-14 11:24:06,442 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 11:24:06,442 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ccaac2-4314-441a-b4d3-109600ea0548
2025-04-14 11:24:06,454 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/056d003b-820e-4f8e-83f9-8934aba13e62
2025-04-14 11:24:06,472 - INFO - Verified VN network id 8 for VN d4ccaac2-4314-441a-b4d3-109600ea0548
2025-04-14 11:24:06,472 - INFO - Verifications in API Server for VN ctest-vn-31004241 passed
2025-04-14 11:24:06,472 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ccaac2-4314-441a-b4d3-109600ea0548
2025-04-14 11:24:06,486 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/056d003b-820e-4f8e-83f9-8934aba13e62
2025-04-14 11:24:06,496 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/056d003b-820e-4f8e-83f9-8934aba13e62
2025-04-14 11:24:06,505 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e8fbda58-6605-4624-b15b-b9fc81f5e2e3
2025-04-14 11:24:06,522 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-31004241', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65632027', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15333818582615475226', 'uuid-lslong': '13029776383359452488'}, 'enable': 'true', 'created': '2025-04-14T11:24:03', 'last-modified': '2025-04-14T11:24:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.106184'}
2025-04-14 11:24:06,530 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 11:24:06,530 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31004241 passed
2025-04-14 11:24:06,531 - DEBUG - ====Verifying policy data for ctest-vn-31004241 in API_Server ======
2025-04-14 11:24:06,531 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-14 11:24:06,538 - DEBUG - Requesting: http://10.0.0.38:8082/domain/84d1dce4-a45b-4b89-9d52-153918f22131
2025-04-14 11:24:06,553 - DEBUG - Requesting: http://10.0.0.38:8082/project/2634638b-4427-425b-bd15-6d74b030ae33
2025-04-14 11:24:06,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d4ccaac2-4314-441a-b4d3-109600ea0548
2025-04-14 11:24:06,650 - DEBUG - ==>Verifying data for policy with id: e6e48976-9ac0-4c2b-9d02-ba4f27debe1d, fqn: ['default-domain', 'ctest-TestBasicPolicy-65632027', 'ctest-policy-allow-all-36810027']
2025-04-14 11:24:06,650 - INFO - VN ctest-vn-31004241 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 11:24:06,650 - DEBUG - Verifying the vn in opserver
2025-04-14 11:24:06,650 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-31004241 virtual network link through opserver 10.0.0.38
2025-04-14 11:24:06,650 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-14 11:24:06,997 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-14 11:24:07,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-31004241', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-31004241?flat'}
2025-04-14 11:24:07,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-31004241 is found in opserver
2025-04-14 11:24:07,084 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 11:24:07,091 - DEBUG - VRF ids for VN ctest-vn-31004241: {}
2025-04-14 11:24:07,091 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-14 11:24:07,100 - DEBUG - Requesting: http://10.0.0.38:8082/domain/84d1dce4-a45b-4b89-9d52-153918f22131
2025-04-14 11:24:07,117 - DEBUG - Requesting: http://10.0.0.38:8082/project/2634638b-4427-425b-bd15-6d74b030ae33
2025-04-14 11:24:07,202 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2867e9e-693b-44bd-9f8b-26998f0d0cf7
2025-04-14 11:24:07,221 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2867e9e-693b-44bd-9f8b-26998f0d0cf7
2025-04-14 11:24:07,237 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/026f3d07-a7a1-40d7-8059-21351acbf801
2025-04-14 11:24:07,247 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/026f3d07-a7a1-40d7-8059-21351acbf801
2025-04-14 11:24:07,256 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2d02a4c3-9327-4c44-a94c-ddada5da5e07
2025-04-14 11:24:07,267 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 11:24:07,267 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2867e9e-693b-44bd-9f8b-26998f0d0cf7
2025-04-14 11:24:07,283 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/026f3d07-a7a1-40d7-8059-21351acbf801
2025-04-14 11:24:07,315 - INFO - Verified VN network id 9 for VN b2867e9e-693b-44bd-9f8b-26998f0d0cf7
2025-04-14 11:24:07,315 - INFO - Verifications in API Server for VN ctest-vn-41162133 passed
2025-04-14 11:24:07,315 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2867e9e-693b-44bd-9f8b-26998f0d0cf7
2025-04-14 11:24:07,330 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/026f3d07-a7a1-40d7-8059-21351acbf801
2025-04-14 11:24:07,340 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/026f3d07-a7a1-40d7-8059-21351acbf801
2025-04-14 11:24:07,350 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2d02a4c3-9327-4c44-a94c-ddada5da5e07
2025-04-14 11:24:07,367 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-41162133', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65632027', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12864108604465824957', 'uuid-lslong': '11496324914765171959'}, 'enable': 'true', 'created': '2025-04-14T11:24:04', 'last-modified': '2025-04-14T11:24:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.684559'}
2025-04-14 11:24:07,375 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 11:24:07,375 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41162133 passed
2025-04-14 11:24:07,375 - DEBUG - ====Verifying policy data for ctest-vn-41162133 in API_Server ======
2025-04-14 11:24:07,375 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-14 11:24:07,382 - DEBUG - Requesting: http://10.0.0.38:8082/domain/84d1dce4-a45b-4b89-9d52-153918f22131
2025-04-14 11:24:07,397 - DEBUG - Requesting: http://10.0.0.38:8082/project/2634638b-4427-425b-bd15-6d74b030ae33
2025-04-14 11:24:07,477 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b2867e9e-693b-44bd-9f8b-26998f0d0cf7
2025-04-14 11:24:07,488 - DEBUG - ==>Verifying data for policy with id: e6e48976-9ac0-4c2b-9d02-ba4f27debe1d, fqn: ['default-domain', 'ctest-TestBasicPolicy-65632027', 'ctest-policy-allow-all-36810027']
2025-04-14 11:24:07,488 - INFO - VN ctest-vn-41162133 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 11:24:07,488 - DEBUG - Verifying the vn in opserver
2025-04-14 11:24:07,488 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-41162133 virtual network link through opserver 10.0.0.38
2025-04-14 11:24:07,488 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-14 11:24:07,503 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-41162133', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-41162133?flat'}
2025-04-14 11:24:07,504 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65632027:ctest-vn-41162133 is found in opserver
2025-04-14 11:24:07,518 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 11:24:07,524 - DEBUG - VRF ids for VN ctest-vn-41162133: {}
2025-04-14 11:24:07,587 - DEBUG - Services list from nova: [