2025-04-15 12:27:59,097 - INFO - Domain Default found not creating
2025-04-15 12:27:59,287 - INFO - Project ctest-TestBasicPolicy-80456494 not found, creating it
2025-04-15 12:27:59,855 - INFO - Created Project:ctest-TestBasicPolicy-80456494, ID : c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96
2025-04-15 12:28:02,365 - INFO - ================================================================================
2025-04-15 12:28:02,366 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-15 12:28:02,366 - 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-15 12:28:02,635 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with
2025-04-15 12:28:02,636 - INFO - Initial checks done. Running the testcase now
2025-04-15 12:28:02,636 - INFO -
2025-04-15 12:28:03,225 - DEBUG - Response for create_network : {'network': {'id': 'c9a442f6-5d3c-407b-945d-fd494f3e20ec', 'name': 'ctest-vn-30720167', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-vn-30720167'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:28:03,416 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0ae8f16-9b55-42eb-a294-2e5a302bc6b9', 'name': '', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'network_id': 'c9a442f6-5d3c-407b-945d-fd494f3e20ec', 'ip_version': 4, 'cidr': '26.14.180.64/26', 'allocation_pools': [{'start': '26.14.180.66', 'end': '26.14.180.126'}], 'gateway_ip': '26.14.180.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.14.180.66', 'tags': [], 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96'}}
2025-04-15 12:28:03,434 - INFO - Created VN ctest-vn-30720167
2025-04-15 12:28:03,486 - DEBUG - VN ctest-vn-30720167 UUID is c9a442f6-5d3c-407b-945d-fd494f3e20ec
2025-04-15 12:28:03,793 - DEBUG - Response for create_network : {'network': {'id': '11f249c4-fa1f-4f41-af24-c9c4914c9a48', 'name': 'ctest-vn-15352913', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-vn-15352913'], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:28:03,987 - DEBUG - Response for create_subnet : {'subnet': {'id': '99da4557-9fad-446d-a11f-9f19ae6a924c', 'name': '', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'network_id': '11f249c4-fa1f-4f41-af24-c9c4914c9a48', 'ip_version': 4, 'cidr': '192.103.231.128/26', 'allocation_pools': [{'start': '192.103.231.130', 'end': '192.103.231.190'}], 'gateway_ip': '192.103.231.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.103.231.130', 'tags': [], 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96'}}
2025-04-15 12:28:04,009 - INFO - Created VN ctest-vn-15352913
2025-04-15 12:28:04,062 - DEBUG - VN ctest-vn-15352913 UUID is 11f249c4-fa1f-4f41-af24-c9c4914c9a48
2025-04-15 12:28:04,179 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167, 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-80456494:ctest-vn-15352913, 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-15 12:28:04,497 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9a442f6-5d3c-407b-945d-fd494f3e20ec', 'name': 'ctest-vn-30720167', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0ae8f16-9b55-42eb-a294-2e5a302bc6b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-vn-30720167'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-policy-allow-all-26181761']], 'subnet_ipam': [{'subnet_cidr': '26.14.180.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:28:04,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11f249c4-fa1f-4f41-af24-c9c4914c9a48', 'name': 'ctest-vn-15352913', 'tenant_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'project_id': 'c19dffa6d1f94b4abf3261b7ba7b3f96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99da4557-9fad-446d-a11f-9f19ae6a924c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-vn-15352913'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-policy-allow-all-26181761']], 'subnet_ipam': [{'subnet_cidr': '192.103.231.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-15 12:28:04,886 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-15 12:28:05,223 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-15 12:28:05,261 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd
2025-04-15 12:28:05,275 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96
2025-04-15 12:28:05,367 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec
2025-04-15 12:28:05,378 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec
2025-04-15 12:28:05,389 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454
2025-04-15 12:28:05,396 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454
2025-04-15 12:28:05,404 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1002ac04-8854-4e8c-922e-770f8d881839
2025-04-15 12:28:05,411 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 12:28:05,411 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec
2025-04-15 12:28:05,421 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454
2025-04-15 12:28:05,435 - INFO - Verified VN network id 8 for VN c9a442f6-5d3c-407b-945d-fd494f3e20ec
2025-04-15 12:28:05,435 - INFO - Verifications in API Server for VN ctest-vn-30720167 passed
2025-04-15 12:28:05,435 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec
2025-04-15 12:28:05,446 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454
2025-04-15 12:28:05,455 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e6dae03f-45e3-4d22-a246-62bdcc76a454
2025-04-15 12:28:05,464 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1002ac04-8854-4e8c-922e-770f8d881839
2025-04-15 12:28:05,479 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80456494', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14529811923697680507', 'uuid-lslong': '10690979581751337196'}, 'enable': 'true', 'created': '2025-04-15T12:28:03', 'last-modified': '2025-04-15T12:28:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013528'}
2025-04-15 12:28:05,485 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-15 12:28:05,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30720167 passed
2025-04-15 12:28:05,486 - DEBUG - ====Verifying policy data for ctest-vn-30720167 in API_Server ======
2025-04-15 12:28:05,486 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-15 12:28:05,492 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd
2025-04-15 12:28:05,505 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96
2025-04-15 12:28:05,594 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c9a442f6-5d3c-407b-945d-fd494f3e20ec
2025-04-15 12:28:05,606 - DEBUG - ==>Verifying data for policy with id: 800b8dac-5753-474e-a92c-1eeb2cb7f8f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-policy-allow-all-26181761']
2025-04-15 12:28:05,606 - INFO - VN ctest-vn-30720167 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 12:28:05,606 - DEBUG - Verifying the vn in opserver
2025-04-15 12:28:05,607 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167 virtual network link through opserver 10.0.0.50
2025-04-15 12:28:05,607 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-15 12:28:05,948 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-15 12:28:06,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167?flat'}
2025-04-15 12:28:06,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-30720167 is found in opserver
2025-04-15 12:28:06,015 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 12:28:06,020 - DEBUG - VRF ids for VN ctest-vn-30720167: {}
2025-04-15 12:28:06,020 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-15 12:28:06,026 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd
2025-04-15 12:28:06,037 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96
2025-04-15 12:28:06,114 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48
2025-04-15 12:28:06,130 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48
2025-04-15 12:28:06,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db
2025-04-15 12:28:06,150 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db
2025-04-15 12:28:06,157 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e00ded8f-b592-4032-a94d-700c24925979
2025-04-15 12:28:06,164 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 12:28:06,164 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48
2025-04-15 12:28:06,174 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db
2025-04-15 12:28:06,190 - INFO - Verified VN network id 9 for VN 11f249c4-fa1f-4f41-af24-c9c4914c9a48
2025-04-15 12:28:06,190 - INFO - Verifications in API Server for VN ctest-vn-15352913 passed
2025-04-15 12:28:06,190 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48
2025-04-15 12:28:06,203 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db
2025-04-15 12:28:06,212 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/652c51b2-8081-4ef3-8132-8cc17389a5db
2025-04-15 12:28:06,219 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e00ded8f-b592-4032-a94d-700c24925979
2025-04-15 12:28:06,231 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80456494', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1293177153367527233', 'uuid-lslong': '12620433901887461960'}, 'enable': 'true', 'created': '2025-04-15T12:28:03', 'last-modified': '2025-04-15T12:28:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.505412'}
2025-04-15 12:28:06,237 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-15 12:28:06,237 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15352913 passed
2025-04-15 12:28:06,237 - DEBUG - ====Verifying policy data for ctest-vn-15352913 in API_Server ======
2025-04-15 12:28:06,237 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-15 12:28:06,243 - DEBUG - Requesting: http://10.0.0.50:8082/domain/09d796dc-0785-4328-aad2-c5abe45913fd
2025-04-15 12:28:06,254 - DEBUG - Requesting: http://10.0.0.50:8082/project/c19dffa6-d1f9-4b4a-bf32-61b7ba7b3f96
2025-04-15 12:28:06,336 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11f249c4-fa1f-4f41-af24-c9c4914c9a48
2025-04-15 12:28:06,347 - DEBUG - ==>Verifying data for policy with id: 800b8dac-5753-474e-a92c-1eeb2cb7f8f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-80456494', 'ctest-policy-allow-all-26181761']
2025-04-15 12:28:06,347 - INFO - VN ctest-vn-15352913 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-15 12:28:06,347 - DEBUG - Verifying the vn in opserver
2025-04-15 12:28:06,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913 virtual network link through opserver 10.0.0.50
2025-04-15 12:28:06,347 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-15 12:28:06,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913?flat'}
2025-04-15 12:28:06,357 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80456494:ctest-vn-15352913 is found in opserver
2025-04-15 12:28:06,367 - DEBUG - Do not have enough data to verify VN in agent
2025-04-15 12:28:06,372 - DEBUG - VRF ids for VN ctest-vn-15352913: {}
2025-04-15 12:28:06,438 - DEBUG - Services list from nova: [