2025-05-09 22:21:33,361 - INFO - Domain Default found not creating
2025-05-09 22:21:33,475 - INFO - Project ctest-TestBasicPolicy-30491574 not found, creating it
2025-05-09 22:21:33,951 - INFO - Created Project:ctest-TestBasicPolicy-30491574, ID : ccc3302b-d44b-41fd-8c05-f288cfdcf4d2
2025-05-09 22:21:35,210 - INFO - ================================================================================
2025-05-09 22:21:35,211 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-09 22:21:35,211 - 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-05-09 22:21:35,464 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-05-09 22:21:35,465 - INFO - Initial checks done. Running the testcase now
2025-05-09 22:21:35,465 - INFO -
2025-05-09 22:21:35,957 - DEBUG - Response for create_network : {'network': {'id': 'f06bd6f0-0d6d-43be-9500-c633a8e45e95', 'name': 'ctest-vn-23663277', 'tenant_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'project_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30491574', 'ctest-vn-23663277'], 'port_security_enabled': True, 'description': ''}}
2025-05-09 22:21:36,112 - DEBUG - Response for create_subnet : {'subnet': {'id': '77b477ca-f7f6-4013-bbc5-50a845711450', 'name': '', 'tenant_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'network_id': 'f06bd6f0-0d6d-43be-9500-c633a8e45e95', 'ip_version': 4, 'cidr': '35.53.122.192/26', 'allocation_pools': [{'start': '35.53.122.194', 'end': '35.53.122.254'}], 'gateway_ip': '35.53.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.53.122.194', 'tags': [], 'project_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2'}}
2025-05-09 22:21:36,131 - INFO - Created VN ctest-vn-23663277
2025-05-09 22:21:36,187 - DEBUG - VN ctest-vn-23663277 UUID is f06bd6f0-0d6d-43be-9500-c633a8e45e95
2025-05-09 22:21:36,453 - DEBUG - Response for create_network : {'network': {'id': 'd4b1c2ae-5381-45a9-be80-625792709ede', 'name': 'ctest-vn-32955161', 'tenant_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'project_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30491574', 'ctest-vn-32955161'], 'port_security_enabled': True, 'description': ''}}
2025-05-09 22:21:36,652 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a1a8e04-5713-4106-87e1-d9f3d82b2c5c', 'name': '', 'tenant_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'network_id': 'd4b1c2ae-5381-45a9-be80-625792709ede', 'ip_version': 4, 'cidr': '133.240.157.0/26', 'allocation_pools': [{'start': '133.240.157.2', 'end': '133.240.157.62'}], 'gateway_ip': '133.240.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.240.157.2', 'tags': [], 'project_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2'}}
2025-05-09 22:21:36,668 - INFO - Created VN ctest-vn-32955161
2025-05-09 22:21:36,718 - DEBUG - VN ctest-vn-32955161 UUID is d4b1c2ae-5381-45a9-be80-625792709ede
2025-05-09 22:21:36,859 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-23663277, 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-30491574:ctest-vn-32955161, 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-05-09 22:21:37,144 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f06bd6f0-0d6d-43be-9500-c633a8e45e95', 'name': 'ctest-vn-23663277', 'tenant_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'project_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77b477ca-f7f6-4013-bbc5-50a845711450'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30491574', 'ctest-vn-23663277'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30491574', 'ctest-policy-allow-all-84270088']], 'subnet_ipam': [{'subnet_cidr': '35.53.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-09 22:21:37,378 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4b1c2ae-5381-45a9-be80-625792709ede', 'name': 'ctest-vn-32955161', 'tenant_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'project_id': 'ccc3302bd44b41fd8c05f288cfdcf4d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a1a8e04-5713-4106-87e1-d9f3d82b2c5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30491574', 'ctest-vn-32955161'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30491574', 'ctest-policy-allow-all-84270088']], 'subnet_ipam': [{'subnet_cidr': '133.240.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-09 22:21:37,539 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-09 22:21:37,803 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-09 22:21:37,829 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f09c14fd-0be3-494f-b2e0-4dcd6edfa931
2025-05-09 22:21:37,845 - DEBUG - Requesting: http://10.0.0.57:8082/project/ccc3302b-d44b-41fd-8c05-f288cfdcf4d2
2025-05-09 22:21:37,923 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f06bd6f0-0d6d-43be-9500-c633a8e45e95
2025-05-09 22:21:37,934 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f06bd6f0-0d6d-43be-9500-c633a8e45e95
2025-05-09 22:21:37,942 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c083305f-92cb-41bf-a197-12690e96fa3d
2025-05-09 22:21:37,948 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c083305f-92cb-41bf-a197-12690e96fa3d
2025-05-09 22:21:37,954 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fbe20f84-7319-4c80-b266-00d603094743
2025-05-09 22:21:37,959 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-09 22:21:37,959 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f06bd6f0-0d6d-43be-9500-c633a8e45e95
2025-05-09 22:21:37,966 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c083305f-92cb-41bf-a197-12690e96fa3d
2025-05-09 22:21:37,978 - INFO - Verified VN network id 9 for VN f06bd6f0-0d6d-43be-9500-c633a8e45e95
2025-05-09 22:21:37,978 - INFO - Verifications in API Server for VN ctest-vn-23663277 passed
2025-05-09 22:21:37,978 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f06bd6f0-0d6d-43be-9500-c633a8e45e95
2025-05-09 22:21:37,986 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c083305f-92cb-41bf-a197-12690e96fa3d
2025-05-09 22:21:37,992 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/c083305f-92cb-41bf-a197-12690e96fa3d
2025-05-09 22:21:37,998 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fbe20f84-7319-4c80-b266-00d603094743
2025-05-09 22:21:38,009 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-23663277', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30491574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17324176718116504510', 'uuid-lslong': '10736799436830432917'}, 'enable': 'true', 'created': '2025-05-09T22:21:35', 'last-modified': '2025-05-09T22:21:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.890339'}
2025-05-09 22:21:38,015 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-09 22:21:38,015 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23663277 passed
2025-05-09 22:21:38,015 - DEBUG - ====Verifying policy data for ctest-vn-23663277 in API_Server ======
2025-05-09 22:21:38,015 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-09 22:21:38,020 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f09c14fd-0be3-494f-b2e0-4dcd6edfa931
2025-05-09 22:21:38,032 - DEBUG - Requesting: http://10.0.0.57:8082/project/ccc3302b-d44b-41fd-8c05-f288cfdcf4d2
2025-05-09 22:21:38,107 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/f06bd6f0-0d6d-43be-9500-c633a8e45e95
2025-05-09 22:21:38,116 - DEBUG - ==>Verifying data for policy with id: 8fe3c42e-1299-4075-b10a-13346fe24702, fqn: ['default-domain', 'ctest-TestBasicPolicy-30491574', 'ctest-policy-allow-all-84270088']
2025-05-09 22:21:38,116 - INFO - VN ctest-vn-23663277 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-09 22:21:38,116 - DEBUG - Verifying the vn in opserver
2025-05-09 22:21:38,116 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-23663277 virtual network link through opserver 10.0.0.57
2025-05-09 22:21:38,116 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-05-09 22:21:38,375 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-05-09 22:21:38,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-23663277', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-23663277?flat'}
2025-05-09 22:21:38,423 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-23663277 is found in opserver
2025-05-09 22:21:38,433 - DEBUG - Do not have enough data to verify VN in agent
2025-05-09 22:21:38,438 - DEBUG - VRF ids for VN ctest-vn-23663277: {}
2025-05-09 22:21:38,438 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-09 22:21:38,443 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f09c14fd-0be3-494f-b2e0-4dcd6edfa931
2025-05-09 22:21:38,454 - DEBUG - Requesting: http://10.0.0.57:8082/project/ccc3302b-d44b-41fd-8c05-f288cfdcf4d2
2025-05-09 22:21:38,532 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d4b1c2ae-5381-45a9-be80-625792709ede
2025-05-09 22:21:38,543 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d4b1c2ae-5381-45a9-be80-625792709ede
2025-05-09 22:21:38,551 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a1acf481-be38-4b67-bfd1-2000e14a5211
2025-05-09 22:21:38,559 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a1acf481-be38-4b67-bfd1-2000e14a5211
2025-05-09 22:21:38,565 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9678281d-db64-48b5-a328-27e583a55bdb
2025-05-09 22:21:38,572 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-09 22:21:38,572 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d4b1c2ae-5381-45a9-be80-625792709ede
2025-05-09 22:21:38,582 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a1acf481-be38-4b67-bfd1-2000e14a5211
2025-05-09 22:21:38,596 - INFO - Verified VN network id 10 for VN d4b1c2ae-5381-45a9-be80-625792709ede
2025-05-09 22:21:38,596 - INFO - Verifications in API Server for VN ctest-vn-32955161 passed
2025-05-09 22:21:38,596 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d4b1c2ae-5381-45a9-be80-625792709ede
2025-05-09 22:21:38,606 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a1acf481-be38-4b67-bfd1-2000e14a5211
2025-05-09 22:21:38,613 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a1acf481-be38-4b67-bfd1-2000e14a5211
2025-05-09 22:21:38,620 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9678281d-db64-48b5-a328-27e583a55bdb
2025-05-09 22:21:38,633 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-32955161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30491574', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15326245060899587497', 'uuid-lslong': '13727079792483802846'}, 'enable': 'true', 'created': '2025-05-09T22:21:36', 'last-modified': '2025-05-09T22:21:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.281209'}
2025-05-09 22:21:38,639 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-09 22:21:38,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32955161 passed
2025-05-09 22:21:38,639 - DEBUG - ====Verifying policy data for ctest-vn-32955161 in API_Server ======
2025-05-09 22:21:38,639 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-05-09 22:21:38,644 - DEBUG - Requesting: http://10.0.0.57:8082/domain/f09c14fd-0be3-494f-b2e0-4dcd6edfa931
2025-05-09 22:21:38,654 - DEBUG - Requesting: http://10.0.0.57:8082/project/ccc3302b-d44b-41fd-8c05-f288cfdcf4d2
2025-05-09 22:21:38,730 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d4b1c2ae-5381-45a9-be80-625792709ede
2025-05-09 22:21:38,739 - DEBUG - ==>Verifying data for policy with id: 8fe3c42e-1299-4075-b10a-13346fe24702, fqn: ['default-domain', 'ctest-TestBasicPolicy-30491574', 'ctest-policy-allow-all-84270088']
2025-05-09 22:21:38,739 - INFO - VN ctest-vn-32955161 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-09 22:21:38,739 - DEBUG - Verifying the vn in opserver
2025-05-09 22:21:38,739 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-32955161 virtual network link through opserver 10.0.0.57
2025-05-09 22:21:38,739 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-05-09 22:21:38,749 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-32955161', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-32955161?flat'}
2025-05-09 22:21:38,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30491574:ctest-vn-32955161 is found in opserver
2025-05-09 22:21:38,760 - DEBUG - Do not have enough data to verify VN in agent
2025-05-09 22:21:38,764 - DEBUG - VRF ids for VN ctest-vn-32955161: {}
2025-05-09 22:21:38,815 - DEBUG - Services list from nova: [