2025-06-09 02:08:18,496 - INFO - Domain Default found not creating
2025-06-09 02:08:18,645 - INFO - Project ctest-TestBasicPolicy-85737741 not found, creating it
2025-06-09 02:08:19,091 - INFO - Created Project:ctest-TestBasicPolicy-85737741, ID : c55a20b8-89a3-40bf-802f-cf147802fbfa
2025-06-09 02:08:20,574 - INFO - ================================================================================
2025-06-09 02:08:20,574 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-09 02:08:20,574 - 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-06-09 02:08:20,834 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.18': '0'}} with
2025-06-09 02:08:20,834 - INFO - Initial checks done. Running the testcase now
2025-06-09 02:08:20,834 - INFO -
2025-06-09 02:08:21,374 - DEBUG - Response for create_network : {'network': {'id': '99592733-0594-4cc8-85c0-7c17c970273c', 'name': 'ctest-vn-50523660', 'tenant_id': 'c55a20b889a340bf802fcf147802fbfa', 'project_id': 'c55a20b889a340bf802fcf147802fbfa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85737741', 'ctest-vn-50523660'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:08:21,598 - DEBUG - Response for create_subnet : {'subnet': {'id': '19916b60-27af-40f1-a84c-df65d09dda4c', 'name': '', 'tenant_id': 'c55a20b889a340bf802fcf147802fbfa', 'network_id': '99592733-0594-4cc8-85c0-7c17c970273c', 'ip_version': 4, 'cidr': '53.240.165.0/26', 'allocation_pools': [{'start': '53.240.165.2', 'end': '53.240.165.62'}], 'gateway_ip': '53.240.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.240.165.2', 'tags': [], 'project_id': 'c55a20b889a340bf802fcf147802fbfa'}}
2025-06-09 02:08:21,617 - INFO - Created VN ctest-vn-50523660
2025-06-09 02:08:21,671 - DEBUG - VN ctest-vn-50523660 UUID is 99592733-0594-4cc8-85c0-7c17c970273c
2025-06-09 02:08:21,962 - DEBUG - Response for create_network : {'network': {'id': 'b6fa8a7a-c42b-4271-bd29-00674c6855c1', 'name': 'ctest-vn-63515219', 'tenant_id': 'c55a20b889a340bf802fcf147802fbfa', 'project_id': 'c55a20b889a340bf802fcf147802fbfa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85737741', 'ctest-vn-63515219'], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:08:22,176 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce0bcaf3-8b8a-49c3-bb6d-1dfdf48bb55f', 'name': '', 'tenant_id': 'c55a20b889a340bf802fcf147802fbfa', 'network_id': 'b6fa8a7a-c42b-4271-bd29-00674c6855c1', 'ip_version': 4, 'cidr': '59.68.191.64/26', 'allocation_pools': [{'start': '59.68.191.66', 'end': '59.68.191.126'}], 'gateway_ip': '59.68.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.68.191.66', 'tags': [], 'project_id': 'c55a20b889a340bf802fcf147802fbfa'}}
2025-06-09 02:08:22,196 - INFO - Created VN ctest-vn-63515219
2025-06-09 02:08:22,251 - DEBUG - VN ctest-vn-63515219 UUID is b6fa8a7a-c42b-4271-bd29-00674c6855c1
2025-06-09 02:08:22,407 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-50523660, 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-85737741:ctest-vn-63515219, 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-06-09 02:08:22,714 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99592733-0594-4cc8-85c0-7c17c970273c', 'name': 'ctest-vn-50523660', 'tenant_id': 'c55a20b889a340bf802fcf147802fbfa', 'project_id': 'c55a20b889a340bf802fcf147802fbfa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19916b60-27af-40f1-a84c-df65d09dda4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85737741', 'ctest-vn-50523660'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85737741', 'ctest-policy-allow-all-03561775']], 'subnet_ipam': [{'subnet_cidr': '53.240.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:08:23,006 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6fa8a7a-c42b-4271-bd29-00674c6855c1', 'name': 'ctest-vn-63515219', 'tenant_id': 'c55a20b889a340bf802fcf147802fbfa', 'project_id': 'c55a20b889a340bf802fcf147802fbfa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce0bcaf3-8b8a-49c3-bb6d-1dfdf48bb55f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85737741', 'ctest-vn-63515219'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85737741', 'ctest-policy-allow-all-03561775']], 'subnet_ipam': [{'subnet_cidr': '59.68.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-09 02:08:23,155 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-09 02:08:23,458 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-09 02:08:23,488 - DEBUG - Requesting: http://10.0.0.130:8082/domain/bb65f9b7-d8a4-4fd7-ac42-d08a3c9d2a22
2025-06-09 02:08:23,503 - DEBUG - Requesting: http://10.0.0.130:8082/project/c55a20b8-89a3-40bf-802f-cf147802fbfa
2025-06-09 02:08:23,590 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/99592733-0594-4cc8-85c0-7c17c970273c
2025-06-09 02:08:23,602 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/99592733-0594-4cc8-85c0-7c17c970273c
2025-06-09 02:08:23,613 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5b072e1d-5ff3-4979-885b-6f134b884d8b
2025-06-09 02:08:23,621 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5b072e1d-5ff3-4979-885b-6f134b884d8b
2025-06-09 02:08:23,637 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/0ee32d8a-0bd9-4d3e-a5f8-bb03eeab3284
2025-06-09 02:08:23,644 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 02:08:23,645 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/99592733-0594-4cc8-85c0-7c17c970273c
2025-06-09 02:08:23,656 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5b072e1d-5ff3-4979-885b-6f134b884d8b
2025-06-09 02:08:23,676 - INFO - Verified VN network id 8 for VN 99592733-0594-4cc8-85c0-7c17c970273c
2025-06-09 02:08:23,676 - INFO - Verifications in API Server for VN ctest-vn-50523660 passed
2025-06-09 02:08:23,676 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/99592733-0594-4cc8-85c0-7c17c970273c
2025-06-09 02:08:23,690 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5b072e1d-5ff3-4979-885b-6f134b884d8b
2025-06-09 02:08:23,702 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/5b072e1d-5ff3-4979-885b-6f134b884d8b
2025-06-09 02:08:23,711 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/0ee32d8a-0bd9-4d3e-a5f8-bb03eeab3284
2025-06-09 02:08:23,727 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-50523660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85737741', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11049906260820643016', 'uuid-lslong': '9637839644178523964'}, 'enable': 'true', 'created': '2025-06-09T02:08:21', 'last-modified': '2025-06-09T02:08:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031303'}
2025-06-09 02:08:23,736 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-09 02:08:23,737 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50523660 passed
2025-06-09 02:08:23,737 - DEBUG - ====Verifying policy data for ctest-vn-50523660 in API_Server ======
2025-06-09 02:08:23,737 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-09 02:08:23,746 - DEBUG - Requesting: http://10.0.0.130:8082/domain/bb65f9b7-d8a4-4fd7-ac42-d08a3c9d2a22
2025-06-09 02:08:23,760 - DEBUG - Requesting: http://10.0.0.130:8082/project/c55a20b8-89a3-40bf-802f-cf147802fbfa
2025-06-09 02:08:23,837 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/99592733-0594-4cc8-85c0-7c17c970273c
2025-06-09 02:08:23,847 - DEBUG - ==>Verifying data for policy with id: 13140245-cf4d-4b29-9403-8ce15bfb7d83, fqn: ['default-domain', 'ctest-TestBasicPolicy-85737741', 'ctest-policy-allow-all-03561775']
2025-06-09 02:08:23,847 - INFO - VN ctest-vn-50523660 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 02:08:23,847 - DEBUG - Verifying the vn in opserver
2025-06-09 02:08:23,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-50523660 virtual network link through opserver 10.0.0.130
2025-06-09 02:08:23,847 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-09 02:08:24,136 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-09 02:08:24,191 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-50523660', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-50523660?flat'}
2025-06-09 02:08:24,192 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-50523660 is found in opserver
2025-06-09 02:08:24,203 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 02:08:24,209 - DEBUG - VRF ids for VN ctest-vn-50523660: {}
2025-06-09 02:08:24,209 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-09 02:08:24,215 - DEBUG - Requesting: http://10.0.0.130:8082/domain/bb65f9b7-d8a4-4fd7-ac42-d08a3c9d2a22
2025-06-09 02:08:24,227 - DEBUG - Requesting: http://10.0.0.130:8082/project/c55a20b8-89a3-40bf-802f-cf147802fbfa
2025-06-09 02:08:24,297 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6fa8a7a-c42b-4271-bd29-00674c6855c1
2025-06-09 02:08:24,311 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6fa8a7a-c42b-4271-bd29-00674c6855c1
2025-06-09 02:08:24,322 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/35e91c50-21ae-4d1d-9a53-4cc7ced1949c
2025-06-09 02:08:24,331 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/35e91c50-21ae-4d1d-9a53-4cc7ced1949c
2025-06-09 02:08:24,339 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d6a335b3-af89-4faf-921f-d291793845ea
2025-06-09 02:08:24,346 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 02:08:24,346 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6fa8a7a-c42b-4271-bd29-00674c6855c1
2025-06-09 02:08:24,357 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/35e91c50-21ae-4d1d-9a53-4cc7ced1949c
2025-06-09 02:08:24,375 - INFO - Verified VN network id 9 for VN b6fa8a7a-c42b-4271-bd29-00674c6855c1
2025-06-09 02:08:24,375 - INFO - Verifications in API Server for VN ctest-vn-63515219 passed
2025-06-09 02:08:24,375 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6fa8a7a-c42b-4271-bd29-00674c6855c1
2025-06-09 02:08:24,388 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/35e91c50-21ae-4d1d-9a53-4cc7ced1949c
2025-06-09 02:08:24,397 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/35e91c50-21ae-4d1d-9a53-4cc7ced1949c
2025-06-09 02:08:24,405 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d6a335b3-af89-4faf-921f-d291793845ea
2025-06-09 02:08:24,419 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-63515219', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85737741', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13185003118962360945', 'uuid-lslong': '13630426190877054401'}, 'enable': 'true', 'created': '2025-06-09T02:08:21', 'last-modified': '2025-06-09T02:08:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.487215'}
2025-06-09 02:08:24,425 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-09 02:08:24,425 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63515219 passed
2025-06-09 02:08:24,426 - DEBUG - ====Verifying policy data for ctest-vn-63515219 in API_Server ======
2025-06-09 02:08:24,426 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-06-09 02:08:24,432 - DEBUG - Requesting: http://10.0.0.130:8082/domain/bb65f9b7-d8a4-4fd7-ac42-d08a3c9d2a22
2025-06-09 02:08:24,447 - DEBUG - Requesting: http://10.0.0.130:8082/project/c55a20b8-89a3-40bf-802f-cf147802fbfa
2025-06-09 02:08:24,524 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/b6fa8a7a-c42b-4271-bd29-00674c6855c1
2025-06-09 02:08:24,535 - DEBUG - ==>Verifying data for policy with id: 13140245-cf4d-4b29-9403-8ce15bfb7d83, fqn: ['default-domain', 'ctest-TestBasicPolicy-85737741', 'ctest-policy-allow-all-03561775']
2025-06-09 02:08:24,535 - INFO - VN ctest-vn-63515219 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-09 02:08:24,535 - DEBUG - Verifying the vn in opserver
2025-06-09 02:08:24,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-63515219 virtual network link through opserver 10.0.0.130
2025-06-09 02:08:24,535 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-06-09 02:08:24,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-63515219', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-63515219?flat'}
2025-06-09 02:08:24,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85737741:ctest-vn-63515219 is found in opserver
2025-06-09 02:08:24,558 - DEBUG - Do not have enough data to verify VN in agent
2025-06-09 02:08:24,564 - DEBUG - VRF ids for VN ctest-vn-63515219: {}
2025-06-09 02:08:24,622 - DEBUG - Services list from nova: [