2025-04-14 11:02:33,483 - INFO - Domain Default found not creating
2025-04-14 11:02:33,645 - INFO - Project ctest-TestBasicPolicy-29344746 not found, creating it
2025-04-14 11:02:34,130 - INFO - Created Project:ctest-TestBasicPolicy-29344746, ID : 95bcfdc6-4481-4f08-8069-c34e2106aba7
2025-04-14 11:02:35,712 - INFO - ================================================================================
2025-04-14 11:02:35,713 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 11:02:35,713 - 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:02:35,971 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-14 11:02:35,971 - INFO - Initial checks done. Running the testcase now
2025-04-14 11:02:35,971 - INFO -
2025-04-14 11:02:36,570 - DEBUG - Response for create_network : {'network': {'id': '9a151a63-37ab-4912-9154-464ed87a3f94', 'name': 'ctest-vn-87756039', 'tenant_id': '95bcfdc644814f088069c34e2106aba7', 'project_id': '95bcfdc644814f088069c34e2106aba7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29344746', 'ctest-vn-87756039'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 11:02:36,772 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e4dbeb5-df22-4cce-b55d-931ffb5d545f', 'name': '', 'tenant_id': '95bcfdc644814f088069c34e2106aba7', 'network_id': '9a151a63-37ab-4912-9154-464ed87a3f94', 'ip_version': 4, 'cidr': '218.163.159.128/26', 'allocation_pools': [{'start': '218.163.159.130', 'end': '218.163.159.190'}], 'gateway_ip': '218.163.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.163.159.130', 'tags': [], 'project_id': '95bcfdc644814f088069c34e2106aba7'}}
2025-04-14 11:02:36,792 - INFO - Created VN ctest-vn-87756039
2025-04-14 11:02:36,847 - DEBUG - VN ctest-vn-87756039 UUID is 9a151a63-37ab-4912-9154-464ed87a3f94
2025-04-14 11:02:37,195 - DEBUG - Response for create_network : {'network': {'id': '28aa3fa4-3a47-4298-aa05-1f7791cb09db', 'name': 'ctest-vn-14477218', 'tenant_id': '95bcfdc644814f088069c34e2106aba7', 'project_id': '95bcfdc644814f088069c34e2106aba7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29344746', 'ctest-vn-14477218'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 11:02:37,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f5ec4f8-c158-4fbb-9c66-d691939daad7', 'name': '', 'tenant_id': '95bcfdc644814f088069c34e2106aba7', 'network_id': '28aa3fa4-3a47-4298-aa05-1f7791cb09db', 'ip_version': 4, 'cidr': '65.69.180.192/26', 'allocation_pools': [{'start': '65.69.180.194', 'end': '65.69.180.254'}], 'gateway_ip': '65.69.180.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.69.180.194', 'tags': [], 'project_id': '95bcfdc644814f088069c34e2106aba7'}}
2025-04-14 11:02:37,394 - INFO - Created VN ctest-vn-14477218
2025-04-14 11:02:37,452 - DEBUG - VN ctest-vn-14477218 UUID is 28aa3fa4-3a47-4298-aa05-1f7791cb09db
2025-04-14 11:02:37,587 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-87756039, 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-29344746:ctest-vn-14477218, 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:02:37,932 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a151a63-37ab-4912-9154-464ed87a3f94', 'name': 'ctest-vn-87756039', 'tenant_id': '95bcfdc644814f088069c34e2106aba7', 'project_id': '95bcfdc644814f088069c34e2106aba7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e4dbeb5-df22-4cce-b55d-931ffb5d545f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29344746', 'ctest-vn-87756039'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29344746', 'ctest-policy-allow-all-19417281']], 'subnet_ipam': [{'subnet_cidr': '218.163.159.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 11:02:38,194 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '28aa3fa4-3a47-4298-aa05-1f7791cb09db', 'name': 'ctest-vn-14477218', 'tenant_id': '95bcfdc644814f088069c34e2106aba7', 'project_id': '95bcfdc644814f088069c34e2106aba7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2f5ec4f8-c158-4fbb-9c66-d691939daad7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29344746', 'ctest-vn-14477218'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29344746', 'ctest-policy-allow-all-19417281']], 'subnet_ipam': [{'subnet_cidr': '65.69.180.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 11:02:38,351 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 11:02:38,648 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 11:02:38,683 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c62643ee-c90c-48e0-816d-388d1388287c
2025-04-14 11:02:38,699 - DEBUG - Requesting: http://10.0.0.254:8082/project/95bcfdc6-4481-4f08-8069-c34e2106aba7
2025-04-14 11:02:38,781 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9a151a63-37ab-4912-9154-464ed87a3f94
2025-04-14 11:02:38,796 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9a151a63-37ab-4912-9154-464ed87a3f94
2025-04-14 11:02:38,808 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fe048c7a-2fa8-4ed1-9569-41231cf1ca35
2025-04-14 11:02:38,817 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fe048c7a-2fa8-4ed1-9569-41231cf1ca35
2025-04-14 11:02:38,826 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4e8ba460-0ee9-4780-90c4-e8d8b8dc4761
2025-04-14 11:02:38,835 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 11:02:38,835 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9a151a63-37ab-4912-9154-464ed87a3f94
2025-04-14 11:02:38,846 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fe048c7a-2fa8-4ed1-9569-41231cf1ca35
2025-04-14 11:02:38,865 - INFO - Verified VN network id 8 for VN 9a151a63-37ab-4912-9154-464ed87a3f94
2025-04-14 11:02:38,866 - INFO - Verifications in API Server for VN ctest-vn-87756039 passed
2025-04-14 11:02:38,866 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9a151a63-37ab-4912-9154-464ed87a3f94
2025-04-14 11:02:38,877 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fe048c7a-2fa8-4ed1-9569-41231cf1ca35
2025-04-14 11:02:38,887 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fe048c7a-2fa8-4ed1-9569-41231cf1ca35
2025-04-14 11:02:38,898 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4e8ba460-0ee9-4780-90c4-e8d8b8dc4761
2025-04-14 11:02:38,916 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-87756039', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29344746', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11102809469789882642', 'uuid-lslong': '10472072337996529556'}, 'enable': 'true', 'created': '2025-04-14T11:02:36', 'last-modified': '2025-04-14T11:02:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019716'}
2025-04-14 11:02:38,925 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 11:02:38,925 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87756039 passed
2025-04-14 11:02:38,925 - DEBUG - ====Verifying policy data for ctest-vn-87756039 in API_Server ======
2025-04-14 11:02:38,925 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 11:02:38,933 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c62643ee-c90c-48e0-816d-388d1388287c
2025-04-14 11:02:38,947 - DEBUG - Requesting: http://10.0.0.254:8082/project/95bcfdc6-4481-4f08-8069-c34e2106aba7
2025-04-14 11:02:39,033 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9a151a63-37ab-4912-9154-464ed87a3f94
2025-04-14 11:02:39,047 - DEBUG - ==>Verifying data for policy with id: 772dab5d-411f-4ed1-9ba3-6ec9e4b7f54e, fqn: ['default-domain', 'ctest-TestBasicPolicy-29344746', 'ctest-policy-allow-all-19417281']
2025-04-14 11:02:39,047 - INFO - VN ctest-vn-87756039 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 11:02:39,047 - DEBUG - Verifying the vn in opserver
2025-04-14 11:02:39,047 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-87756039 virtual network link through opserver 10.0.0.254
2025-04-14 11:02:39,047 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 11:02:39,343 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 11:02:39,407 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-87756039', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-87756039?flat'}
2025-04-14 11:02:39,407 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-87756039 is found in opserver
2025-04-14 11:02:39,421 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 11:02:39,428 - DEBUG - VRF ids for VN ctest-vn-87756039: {}
2025-04-14 11:02:39,428 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 11:02:39,435 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c62643ee-c90c-48e0-816d-388d1388287c
2025-04-14 11:02:39,452 - DEBUG - Requesting: http://10.0.0.254:8082/project/95bcfdc6-4481-4f08-8069-c34e2106aba7
2025-04-14 11:02:39,537 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/28aa3fa4-3a47-4298-aa05-1f7791cb09db
2025-04-14 11:02:39,551 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/28aa3fa4-3a47-4298-aa05-1f7791cb09db
2025-04-14 11:02:39,563 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ad664bdb-ae10-4424-b397-e476a2dd83a9
2025-04-14 11:02:39,572 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ad664bdb-ae10-4424-b397-e476a2dd83a9
2025-04-14 11:02:39,582 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/22120393-844f-4ced-985a-816fd7a34ff4
2025-04-14 11:02:39,591 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 11:02:39,591 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/28aa3fa4-3a47-4298-aa05-1f7791cb09db
2025-04-14 11:02:39,604 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ad664bdb-ae10-4424-b397-e476a2dd83a9
2025-04-14 11:02:39,625 - INFO - Verified VN network id 9 for VN 28aa3fa4-3a47-4298-aa05-1f7791cb09db
2025-04-14 11:02:39,625 - INFO - Verifications in API Server for VN ctest-vn-14477218 passed
2025-04-14 11:02:39,625 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/28aa3fa4-3a47-4298-aa05-1f7791cb09db
2025-04-14 11:02:39,637 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ad664bdb-ae10-4424-b397-e476a2dd83a9
2025-04-14 11:02:39,647 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ad664bdb-ae10-4424-b397-e476a2dd83a9
2025-04-14 11:02:39,658 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/22120393-844f-4ced-985a-816fd7a34ff4
2025-04-14 11:02:39,675 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-14477218', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29344746', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2930224482142864024', 'uuid-lslong': '12251232959738874331'}, 'enable': 'true', 'created': '2025-04-14T11:02:37', 'last-modified': '2025-04-14T11:02:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509320'}
2025-04-14 11:02:39,684 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 11:02:39,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14477218 passed
2025-04-14 11:02:39,684 - DEBUG - ====Verifying policy data for ctest-vn-14477218 in API_Server ======
2025-04-14 11:02:39,684 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-14 11:02:39,693 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c62643ee-c90c-48e0-816d-388d1388287c
2025-04-14 11:02:39,709 - DEBUG - Requesting: http://10.0.0.254:8082/project/95bcfdc6-4481-4f08-8069-c34e2106aba7
2025-04-14 11:02:39,789 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/28aa3fa4-3a47-4298-aa05-1f7791cb09db
2025-04-14 11:02:39,803 - DEBUG - ==>Verifying data for policy with id: 772dab5d-411f-4ed1-9ba3-6ec9e4b7f54e, fqn: ['default-domain', 'ctest-TestBasicPolicy-29344746', 'ctest-policy-allow-all-19417281']
2025-04-14 11:02:39,803 - INFO - VN ctest-vn-14477218 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 11:02:39,803 - DEBUG - Verifying the vn in opserver
2025-04-14 11:02:39,803 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-14477218 virtual network link through opserver 10.0.0.254
2025-04-14 11:02:39,803 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-14 11:02:39,818 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-14477218', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-14477218?flat'}
2025-04-14 11:02:39,818 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29344746:ctest-vn-14477218 is found in opserver
2025-04-14 11:02:39,832 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 11:02:39,838 - DEBUG - VRF ids for VN ctest-vn-14477218: {}
2025-04-14 11:02:39,907 - DEBUG - Services list from nova: [