2025-01-08 23:24:54,564 - INFO - Domain Default found not creating
2025-01-08 23:24:54,706 - INFO - Project ctest-TestBasicPolicy-81329807 not found, creating it
2025-01-08 23:24:55,142 - INFO - Created Project:ctest-TestBasicPolicy-81329807, ID : 6754574e-5013-4cfe-8016-0162a129ff0f
2025-01-08 23:24:56,519 - INFO - ================================================================================
2025-01-08 23:24:56,519 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-08 23:24:56,519 - 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-01-08 23:24:56,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.6': '0'}} with
2025-01-08 23:24:56,770 - INFO - Initial checks done. Running the testcase now
2025-01-08 23:24:56,770 - INFO -
2025-01-08 23:24:57,287 - DEBUG - Response for create_network : {'network': {'id': '9765202b-3358-4791-a349-f20facff30d1', 'name': 'ctest-vn-96782346', 'tenant_id': '6754574e50134cfe80160162a129ff0f', 'project_id': '6754574e50134cfe80160162a129ff0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81329807', 'ctest-vn-96782346'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 23:24:57,501 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dae35c63-42bd-4d75-88f2-1b1a8d9c42b7', 'name': '', 'tenant_id': '6754574e50134cfe80160162a129ff0f', 'network_id': '9765202b-3358-4791-a349-f20facff30d1', 'ip_version': 4, 'cidr': '100.131.208.128/26', 'allocation_pools': [{'start': '100.131.208.130', 'end': '100.131.208.190'}], 'gateway_ip': '100.131.208.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.131.208.130', 'tags': [], 'project_id': '6754574e50134cfe80160162a129ff0f'}}
2025-01-08 23:24:57,519 - INFO - Created VN ctest-vn-96782346
2025-01-08 23:24:57,570 - DEBUG - VN ctest-vn-96782346 UUID is 9765202b-3358-4791-a349-f20facff30d1
2025-01-08 23:24:57,874 - DEBUG - Response for create_network : {'network': {'id': 'f558a95a-3283-419e-802c-5aad63eb9b74', 'name': 'ctest-vn-83555692', 'tenant_id': '6754574e50134cfe80160162a129ff0f', 'project_id': '6754574e50134cfe80160162a129ff0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81329807', 'ctest-vn-83555692'], 'port_security_enabled': True, 'description': ''}}
2025-01-08 23:24:58,047 - DEBUG - Response for create_subnet : {'subnet': {'id': '121b384e-d137-47a3-84a2-305fa73c9ce2', 'name': '', 'tenant_id': '6754574e50134cfe80160162a129ff0f', 'network_id': 'f558a95a-3283-419e-802c-5aad63eb9b74', 'ip_version': 4, 'cidr': '116.233.237.192/26', 'allocation_pools': [{'start': '116.233.237.194', 'end': '116.233.237.254'}], 'gateway_ip': '116.233.237.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.233.237.194', 'tags': [], 'project_id': '6754574e50134cfe80160162a129ff0f'}}
2025-01-08 23:24:58,061 - INFO - Created VN ctest-vn-83555692
2025-01-08 23:24:58,114 - DEBUG - VN ctest-vn-83555692 UUID is f558a95a-3283-419e-802c-5aad63eb9b74
2025-01-08 23:24:58,262 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-96782346, 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-81329807:ctest-vn-83555692, 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-01-08 23:24:58,557 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9765202b-3358-4791-a349-f20facff30d1', 'name': 'ctest-vn-96782346', 'tenant_id': '6754574e50134cfe80160162a129ff0f', 'project_id': '6754574e50134cfe80160162a129ff0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dae35c63-42bd-4d75-88f2-1b1a8d9c42b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81329807', 'ctest-vn-96782346'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81329807', 'ctest-policy-allow-all-85637448']], 'subnet_ipam': [{'subnet_cidr': '100.131.208.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 23:24:58,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f558a95a-3283-419e-802c-5aad63eb9b74', 'name': 'ctest-vn-83555692', 'tenant_id': '6754574e50134cfe80160162a129ff0f', 'project_id': '6754574e50134cfe80160162a129ff0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['121b384e-d137-47a3-84a2-305fa73c9ce2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-81329807', 'ctest-vn-83555692'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-81329807', 'ctest-policy-allow-all-85637448']], 'subnet_ipam': [{'subnet_cidr': '116.233.237.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-08 23:24:58,950 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 23:24:59,241 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 23:24:59,267 - DEBUG - Requesting: http://10.0.0.41:8082/domain/513f6ed0-987d-4f08-8d72-938c0e28b7ec
2025-01-08 23:24:59,279 - DEBUG - Requesting: http://10.0.0.41:8082/project/6754574e-5013-4cfe-8016-0162a129ff0f
2025-01-08 23:24:59,351 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9765202b-3358-4791-a349-f20facff30d1
2025-01-08 23:24:59,362 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9765202b-3358-4791-a349-f20facff30d1
2025-01-08 23:24:59,371 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28051aac-c399-48a8-80a0-68a583348772
2025-01-08 23:24:59,378 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28051aac-c399-48a8-80a0-68a583348772
2025-01-08 23:24:59,384 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/b62e4a2d-8559-40a3-ba42-475e956ff28f
2025-01-08 23:24:59,390 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 23:24:59,390 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9765202b-3358-4791-a349-f20facff30d1
2025-01-08 23:24:59,399 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28051aac-c399-48a8-80a0-68a583348772
2025-01-08 23:24:59,412 - INFO - Verified VN network id 8 for VN 9765202b-3358-4791-a349-f20facff30d1
2025-01-08 23:24:59,412 - INFO - Verifications in API Server for VN ctest-vn-96782346 passed
2025-01-08 23:24:59,412 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9765202b-3358-4791-a349-f20facff30d1
2025-01-08 23:24:59,423 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28051aac-c399-48a8-80a0-68a583348772
2025-01-08 23:24:59,429 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28051aac-c399-48a8-80a0-68a583348772
2025-01-08 23:24:59,436 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/b62e4a2d-8559-40a3-ba42-475e956ff28f
2025-01-08 23:24:59,449 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-96782346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81329807', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10909161042292000657', 'uuid-lslong': '11766201650622968017'}, 'enable': 'true', 'created': '2025-01-08T23:24:57', 'last-modified': '2025-01-08T23:24:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911165'}
2025-01-08 23:24:59,456 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-08 23:24:59,456 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96782346 passed
2025-01-08 23:24:59,456 - DEBUG - ====Verifying policy data for ctest-vn-96782346 in API_Server ======
2025-01-08 23:24:59,456 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 23:24:59,462 - DEBUG - Requesting: http://10.0.0.41:8082/domain/513f6ed0-987d-4f08-8d72-938c0e28b7ec
2025-01-08 23:24:59,472 - DEBUG - Requesting: http://10.0.0.41:8082/project/6754574e-5013-4cfe-8016-0162a129ff0f
2025-01-08 23:24:59,541 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/9765202b-3358-4791-a349-f20facff30d1
2025-01-08 23:24:59,552 - DEBUG - ==>Verifying data for policy with id: aa111644-1478-44f5-8ff4-01f6ca6fbd0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-81329807', 'ctest-policy-allow-all-85637448']
2025-01-08 23:24:59,552 - INFO - VN ctest-vn-96782346 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 23:24:59,552 - DEBUG - Verifying the vn in opserver
2025-01-08 23:24:59,552 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-96782346 virtual network link through opserver 10.0.0.41
2025-01-08 23:24:59,552 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-08 23:24:59,845 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-08 23:24:59,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-96782346', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-96782346?flat'}
2025-01-08 23:24:59,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-96782346 is found in opserver
2025-01-08 23:24:59,906 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 23:24:59,912 - DEBUG - VRF ids for VN ctest-vn-96782346: {}
2025-01-08 23:24:59,912 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 23:24:59,918 - DEBUG - Requesting: http://10.0.0.41:8082/domain/513f6ed0-987d-4f08-8d72-938c0e28b7ec
2025-01-08 23:24:59,928 - DEBUG - Requesting: http://10.0.0.41:8082/project/6754574e-5013-4cfe-8016-0162a129ff0f
2025-01-08 23:24:59,998 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f558a95a-3283-419e-802c-5aad63eb9b74
2025-01-08 23:25:00,012 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f558a95a-3283-419e-802c-5aad63eb9b74
2025-01-08 23:25:00,024 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/be1bef56-cdc8-4fac-976b-db23302c13db
2025-01-08 23:25:00,034 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/be1bef56-cdc8-4fac-976b-db23302c13db
2025-01-08 23:25:00,042 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c99e3c7a-89b2-40eb-bcec-02d7613f0c62
2025-01-08 23:25:00,049 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 23:25:00,049 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f558a95a-3283-419e-802c-5aad63eb9b74
2025-01-08 23:25:00,058 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/be1bef56-cdc8-4fac-976b-db23302c13db
2025-01-08 23:25:00,072 - INFO - Verified VN network id 9 for VN f558a95a-3283-419e-802c-5aad63eb9b74
2025-01-08 23:25:00,072 - INFO - Verifications in API Server for VN ctest-vn-83555692 passed
2025-01-08 23:25:00,072 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f558a95a-3283-419e-802c-5aad63eb9b74
2025-01-08 23:25:00,081 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/be1bef56-cdc8-4fac-976b-db23302c13db
2025-01-08 23:25:00,087 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/be1bef56-cdc8-4fac-976b-db23302c13db
2025-01-08 23:25:00,094 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c99e3c7a-89b2-40eb-bcec-02d7613f0c62
2025-01-08 23:25:00,106 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-83555692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-81329807', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17679066542102495646', 'uuid-lslong': '9235856636582271860'}, 'enable': 'true', 'created': '2025-01-08T23:24:57', 'last-modified': '2025-01-08T23:24:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.341848'}
2025-01-08 23:25:00,112 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-08 23:25:00,112 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83555692 passed
2025-01-08 23:25:00,112 - DEBUG - ====Verifying policy data for ctest-vn-83555692 in API_Server ======
2025-01-08 23:25:00,112 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-08 23:25:00,119 - DEBUG - Requesting: http://10.0.0.41:8082/domain/513f6ed0-987d-4f08-8d72-938c0e28b7ec
2025-01-08 23:25:00,130 - DEBUG - Requesting: http://10.0.0.41:8082/project/6754574e-5013-4cfe-8016-0162a129ff0f
2025-01-08 23:25:00,200 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f558a95a-3283-419e-802c-5aad63eb9b74
2025-01-08 23:25:00,209 - DEBUG - ==>Verifying data for policy with id: aa111644-1478-44f5-8ff4-01f6ca6fbd0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-81329807', 'ctest-policy-allow-all-85637448']
2025-01-08 23:25:00,209 - INFO - VN ctest-vn-83555692 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-08 23:25:00,209 - DEBUG - Verifying the vn in opserver
2025-01-08 23:25:00,209 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-83555692 virtual network link through opserver 10.0.0.41
2025-01-08 23:25:00,209 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-08 23:25:00,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-83555692', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-83555692?flat'}
2025-01-08 23:25:00,218 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-81329807:ctest-vn-83555692 is found in opserver
2025-01-08 23:25:00,229 - DEBUG - Do not have enough data to verify VN in agent
2025-01-08 23:25:00,233 - DEBUG - VRF ids for VN ctest-vn-83555692: {}
2025-01-08 23:25:00,282 - DEBUG - Services list from nova: [