2025-04-24 13:23:57,478 - INFO - Domain Default found not creating
2025-04-24 13:23:57,624 - INFO - Project ctest-TestBasicPolicy-31226260 not found, creating it
2025-04-24 13:23:58,192 - INFO - Created Project:ctest-TestBasicPolicy-31226260, ID : cd41d6b9-53be-4778-bfa6-e25bea348fa7
2025-04-24 13:23:59,859 - INFO - ================================================================================
2025-04-24 13:23:59,859 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 13:23:59,859 - 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-24 13:24:00,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-24 13:24:00,120 - INFO - Initial checks done. Running the testcase now
2025-04-24 13:24:00,120 - INFO -
2025-04-24 13:24:00,747 - DEBUG - Response for create_network : {'network': {'id': '2e29f4e7-760e-4476-9635-660f477afed6', 'name': 'ctest-vn-21485073', 'tenant_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'project_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31226260', 'ctest-vn-21485073'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 13:24:00,964 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa3ba273-c98b-4160-9039-882e313b3ca6', 'name': '', 'tenant_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'network_id': '2e29f4e7-760e-4476-9635-660f477afed6', 'ip_version': 4, 'cidr': '96.42.6.64/26', 'allocation_pools': [{'start': '96.42.6.66', 'end': '96.42.6.126'}], 'gateway_ip': '96.42.6.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.42.6.66', 'tags': [], 'project_id': 'cd41d6b953be4778bfa6e25bea348fa7'}}
2025-04-24 13:24:00,986 - INFO - Created VN ctest-vn-21485073
2025-04-24 13:24:01,038 - DEBUG - VN ctest-vn-21485073 UUID is 2e29f4e7-760e-4476-9635-660f477afed6
2025-04-24 13:24:01,375 - DEBUG - Response for create_network : {'network': {'id': 'bb320624-853d-4445-9939-d72f93306e2b', 'name': 'ctest-vn-87155200', 'tenant_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'project_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31226260', 'ctest-vn-87155200'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 13:24:01,579 - DEBUG - Response for create_subnet : {'subnet': {'id': '87e7e66c-cd95-48b7-8396-f0c89e737268', 'name': '', 'tenant_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'network_id': 'bb320624-853d-4445-9939-d72f93306e2b', 'ip_version': 4, 'cidr': '147.207.56.128/26', 'allocation_pools': [{'start': '147.207.56.130', 'end': '147.207.56.190'}], 'gateway_ip': '147.207.56.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.207.56.130', 'tags': [], 'project_id': 'cd41d6b953be4778bfa6e25bea348fa7'}}
2025-04-24 13:24:01,603 - INFO - Created VN ctest-vn-87155200
2025-04-24 13:24:01,658 - DEBUG - VN ctest-vn-87155200 UUID is bb320624-853d-4445-9939-d72f93306e2b
2025-04-24 13:24:01,774 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-21485073, 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-31226260:ctest-vn-87155200, 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-24 13:24:02,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e29f4e7-760e-4476-9635-660f477afed6', 'name': 'ctest-vn-21485073', 'tenant_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'project_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa3ba273-c98b-4160-9039-882e313b3ca6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31226260', 'ctest-vn-21485073'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31226260', 'ctest-policy-allow-all-33010096']], 'subnet_ipam': [{'subnet_cidr': '96.42.6.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 13:24:02,309 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb320624-853d-4445-9939-d72f93306e2b', 'name': 'ctest-vn-87155200', 'tenant_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'project_id': 'cd41d6b953be4778bfa6e25bea348fa7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87e7e66c-cd95-48b7-8396-f0c89e737268'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31226260', 'ctest-vn-87155200'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31226260', 'ctest-policy-allow-all-33010096']], 'subnet_ipam': [{'subnet_cidr': '147.207.56.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 13:24:02,478 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 13:24:02,813 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 13:24:02,841 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b8086cc8-b181-4b95-a041-5a77782077b0
2025-04-24 13:24:02,855 - DEBUG - Requesting: http://10.0.0.254:8082/project/cd41d6b9-53be-4778-bfa6-e25bea348fa7
2025-04-24 13:24:02,936 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e29f4e7-760e-4476-9635-660f477afed6
2025-04-24 13:24:02,951 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e29f4e7-760e-4476-9635-660f477afed6
2025-04-24 13:24:02,962 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0d3f8c1e-2e95-47f4-968b-8acfa0259f0b
2025-04-24 13:24:02,971 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0d3f8c1e-2e95-47f4-968b-8acfa0259f0b
2025-04-24 13:24:02,978 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fc2f5cb6-3fc9-4e5d-bb88-9b1879f09803
2025-04-24 13:24:02,985 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 13:24:02,986 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e29f4e7-760e-4476-9635-660f477afed6
2025-04-24 13:24:02,996 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0d3f8c1e-2e95-47f4-968b-8acfa0259f0b
2025-04-24 13:24:03,012 - INFO - Verified VN network id 9 for VN 2e29f4e7-760e-4476-9635-660f477afed6
2025-04-24 13:24:03,012 - INFO - Verifications in API Server for VN ctest-vn-21485073 passed
2025-04-24 13:24:03,012 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e29f4e7-760e-4476-9635-660f477afed6
2025-04-24 13:24:03,024 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0d3f8c1e-2e95-47f4-968b-8acfa0259f0b
2025-04-24 13:24:03,031 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0d3f8c1e-2e95-47f4-968b-8acfa0259f0b
2025-04-24 13:24:03,039 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fc2f5cb6-3fc9-4e5d-bb88-9b1879f09803
2025-04-24 13:24:03,052 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-21485073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31226260', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3326459074745091190', 'uuid-lslong': '10823669495264640726'}, 'enable': 'true', 'created': '2025-04-24T13:24:00', 'last-modified': '2025-04-24T13:24:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005656'}
2025-04-24 13:24:03,060 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 13:24:03,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21485073 passed
2025-04-24 13:24:03,060 - DEBUG - ====Verifying policy data for ctest-vn-21485073 in API_Server ======
2025-04-24 13:24:03,060 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 13:24:03,067 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b8086cc8-b181-4b95-a041-5a77782077b0
2025-04-24 13:24:03,079 - DEBUG - Requesting: http://10.0.0.254:8082/project/cd41d6b9-53be-4778-bfa6-e25bea348fa7
2025-04-24 13:24:03,153 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2e29f4e7-760e-4476-9635-660f477afed6
2025-04-24 13:24:03,164 - DEBUG - ==>Verifying data for policy with id: 1c9a0259-d165-4019-8082-6b65d5553501, fqn: ['default-domain', 'ctest-TestBasicPolicy-31226260', 'ctest-policy-allow-all-33010096']
2025-04-24 13:24:03,164 - INFO - VN ctest-vn-21485073 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 13:24:03,164 - DEBUG - Verifying the vn in opserver
2025-04-24 13:24:03,164 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-21485073 virtual network link through opserver 10.0.0.254
2025-04-24 13:24:03,164 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 13:24:03,496 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 13:24:03,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-21485073', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-21485073?flat'}
2025-04-24 13:24:03,549 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-21485073 is found in opserver
2025-04-24 13:24:03,560 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 13:24:03,565 - DEBUG - VRF ids for VN ctest-vn-21485073: {}
2025-04-24 13:24:03,565 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 13:24:03,571 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b8086cc8-b181-4b95-a041-5a77782077b0
2025-04-24 13:24:03,583 - DEBUG - Requesting: http://10.0.0.254:8082/project/cd41d6b9-53be-4778-bfa6-e25bea348fa7
2025-04-24 13:24:03,659 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb320624-853d-4445-9939-d72f93306e2b
2025-04-24 13:24:03,672 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb320624-853d-4445-9939-d72f93306e2b
2025-04-24 13:24:03,682 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e95ed4c-b068-4eb1-8f7b-531d53c76f9d
2025-04-24 13:24:03,690 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e95ed4c-b068-4eb1-8f7b-531d53c76f9d
2025-04-24 13:24:03,698 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/75841f14-4e5c-4318-bb99-5de93906e438
2025-04-24 13:24:03,705 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 13:24:03,705 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb320624-853d-4445-9939-d72f93306e2b
2025-04-24 13:24:03,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e95ed4c-b068-4eb1-8f7b-531d53c76f9d
2025-04-24 13:24:03,729 - INFO - Verified VN network id 10 for VN bb320624-853d-4445-9939-d72f93306e2b
2025-04-24 13:24:03,729 - INFO - Verifications in API Server for VN ctest-vn-87155200 passed
2025-04-24 13:24:03,729 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb320624-853d-4445-9939-d72f93306e2b
2025-04-24 13:24:03,739 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e95ed4c-b068-4eb1-8f7b-531d53c76f9d
2025-04-24 13:24:03,746 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8e95ed4c-b068-4eb1-8f7b-531d53c76f9d
2025-04-24 13:24:03,754 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/75841f14-4e5c-4318-bb99-5de93906e438
2025-04-24 13:24:03,766 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-87155200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31226260', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13488850587852031045', 'uuid-lslong': '11041092560808341035'}, 'enable': 'true', 'created': '2025-04-24T13:24:01', 'last-modified': '2025-04-24T13:24:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.477759'}
2025-04-24 13:24:03,772 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 13:24:03,773 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87155200 passed
2025-04-24 13:24:03,773 - DEBUG - ====Verifying policy data for ctest-vn-87155200 in API_Server ======
2025-04-24 13:24:03,773 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 13:24:03,778 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b8086cc8-b181-4b95-a041-5a77782077b0
2025-04-24 13:24:03,790 - DEBUG - Requesting: http://10.0.0.254:8082/project/cd41d6b9-53be-4778-bfa6-e25bea348fa7
2025-04-24 13:24:03,868 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bb320624-853d-4445-9939-d72f93306e2b
2025-04-24 13:24:03,879 - DEBUG - ==>Verifying data for policy with id: 1c9a0259-d165-4019-8082-6b65d5553501, fqn: ['default-domain', 'ctest-TestBasicPolicy-31226260', 'ctest-policy-allow-all-33010096']
2025-04-24 13:24:03,879 - INFO - VN ctest-vn-87155200 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 13:24:03,879 - DEBUG - Verifying the vn in opserver
2025-04-24 13:24:03,879 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-87155200 virtual network link through opserver 10.0.0.254
2025-04-24 13:24:03,879 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 13:24:03,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-87155200', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-87155200?flat'}
2025-04-24 13:24:03,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31226260:ctest-vn-87155200 is found in opserver
2025-04-24 13:24:03,901 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 13:24:03,907 - DEBUG - VRF ids for VN ctest-vn-87155200: {}
2025-04-24 13:24:03,963 - DEBUG - Services list from nova: [