2025-05-05 02:10:31,114 - INFO - Domain Default found not creating
2025-05-05 02:10:31,262 - INFO - Project ctest-TestBasicPolicy-25245955 not found, creating it
2025-05-05 02:10:31,744 - INFO - Created Project:ctest-TestBasicPolicy-25245955, ID : ff5bbcf3-6e3b-4f39-a2d4-d56681f69b3f
2025-05-05 02:10:33,370 - INFO - ================================================================================
2025-05-05 02:10:33,370 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-05 02:10:33,371 - 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-05 02:10:33,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-05-05 02:10:33,626 - INFO - Initial checks done. Running the testcase now
2025-05-05 02:10:33,626 - INFO -
2025-05-05 02:10:34,231 - DEBUG - Response for create_network : {'network': {'id': '773a005e-618c-494e-b4c9-241939a44355', 'name': 'ctest-vn-71855065', 'tenant_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'project_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25245955', 'ctest-vn-71855065'], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:10:34,458 - DEBUG - Response for create_subnet : {'subnet': {'id': '296faaea-2f4e-4ce3-80c0-40b00c6e00d4', 'name': '', 'tenant_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'network_id': '773a005e-618c-494e-b4c9-241939a44355', 'ip_version': 4, 'cidr': '110.30.72.0/26', 'allocation_pools': [{'start': '110.30.72.2', 'end': '110.30.72.62'}], 'gateway_ip': '110.30.72.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.30.72.2', 'tags': [], 'project_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f'}}
2025-05-05 02:10:34,477 - INFO - Created VN ctest-vn-71855065
2025-05-05 02:10:34,530 - DEBUG - VN ctest-vn-71855065 UUID is 773a005e-618c-494e-b4c9-241939a44355
2025-05-05 02:10:34,852 - DEBUG - Response for create_network : {'network': {'id': '0d2952ef-5852-4bb9-b776-c546ec2a1d6e', 'name': 'ctest-vn-62739140', 'tenant_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'project_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25245955', 'ctest-vn-62739140'], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:10:35,003 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6d0fd88-1413-4395-ae94-c9b9f192f049', 'name': '', 'tenant_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'network_id': '0d2952ef-5852-4bb9-b776-c546ec2a1d6e', 'ip_version': 4, 'cidr': '169.188.166.192/26', 'allocation_pools': [{'start': '169.188.166.194', 'end': '169.188.166.254'}], 'gateway_ip': '169.188.166.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.188.166.194', 'tags': [], 'project_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f'}}
2025-05-05 02:10:35,022 - INFO - Created VN ctest-vn-62739140
2025-05-05 02:10:35,078 - DEBUG - VN ctest-vn-62739140 UUID is 0d2952ef-5852-4bb9-b776-c546ec2a1d6e
2025-05-05 02:10:35,199 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-71855065, 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-25245955:ctest-vn-62739140, 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-05 02:10:35,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '773a005e-618c-494e-b4c9-241939a44355', 'name': 'ctest-vn-71855065', 'tenant_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'project_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['296faaea-2f4e-4ce3-80c0-40b00c6e00d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25245955', 'ctest-vn-71855065'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25245955', 'ctest-policy-allow-all-73012553']], 'subnet_ipam': [{'subnet_cidr': '110.30.72.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:10:35,775 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d2952ef-5852-4bb9-b776-c546ec2a1d6e', 'name': 'ctest-vn-62739140', 'tenant_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'project_id': 'ff5bbcf36e3b4f39a2d4d56681f69b3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6d0fd88-1413-4395-ae94-c9b9f192f049'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25245955', 'ctest-vn-62739140'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25245955', 'ctest-policy-allow-all-73012553']], 'subnet_ipam': [{'subnet_cidr': '169.188.166.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:10:35,958 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-05 02:10:36,293 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-05 02:10:36,325 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0a135b46-1d65-4671-af1b-c572fb0dcddc
2025-05-05 02:10:36,340 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff5bbcf3-6e3b-4f39-a2d4-d56681f69b3f
2025-05-05 02:10:36,416 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/773a005e-618c-494e-b4c9-241939a44355
2025-05-05 02:10:36,429 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/773a005e-618c-494e-b4c9-241939a44355
2025-05-05 02:10:36,440 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9bd87be1-6ccc-4118-8279-4d73f2cece91
2025-05-05 02:10:36,448 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9bd87be1-6ccc-4118-8279-4d73f2cece91
2025-05-05 02:10:36,456 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a1d3665c-fa1c-4417-ac99-a04798584892
2025-05-05 02:10:36,464 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-05 02:10:36,464 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/773a005e-618c-494e-b4c9-241939a44355
2025-05-05 02:10:36,474 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9bd87be1-6ccc-4118-8279-4d73f2cece91
2025-05-05 02:10:36,489 - INFO - Verified VN network id 8 for VN 773a005e-618c-494e-b4c9-241939a44355
2025-05-05 02:10:36,490 - INFO - Verifications in API Server for VN ctest-vn-71855065 passed
2025-05-05 02:10:36,490 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/773a005e-618c-494e-b4c9-241939a44355
2025-05-05 02:10:36,502 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9bd87be1-6ccc-4118-8279-4d73f2cece91
2025-05-05 02:10:36,511 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9bd87be1-6ccc-4118-8279-4d73f2cece91
2025-05-05 02:10:36,522 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a1d3665c-fa1c-4417-ac99-a04798584892
2025-05-05 02:10:36,536 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-71855065', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25245955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8591179644526152014', 'uuid-lslong': '13026983087905719125'}, 'enable': 'true', 'created': '2025-05-05T02:10:34', 'last-modified': '2025-05-05T02:10:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.043631'}
2025-05-05 02:10:36,544 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-05 02:10:36,544 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71855065 passed
2025-05-05 02:10:36,544 - DEBUG - ====Verifying policy data for ctest-vn-71855065 in API_Server ======
2025-05-05 02:10:36,544 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-05 02:10:36,550 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0a135b46-1d65-4671-af1b-c572fb0dcddc
2025-05-05 02:10:36,565 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff5bbcf3-6e3b-4f39-a2d4-d56681f69b3f
2025-05-05 02:10:36,644 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/773a005e-618c-494e-b4c9-241939a44355
2025-05-05 02:10:36,656 - DEBUG - ==>Verifying data for policy with id: cf984280-6efb-4eac-9fce-641f5a915508, fqn: ['default-domain', 'ctest-TestBasicPolicy-25245955', 'ctest-policy-allow-all-73012553']
2025-05-05 02:10:36,656 - INFO - VN ctest-vn-71855065 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-05 02:10:36,657 - DEBUG - Verifying the vn in opserver
2025-05-05 02:10:36,657 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-71855065 virtual network link through opserver 10.0.0.254
2025-05-05 02:10:36,657 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-05 02:10:36,995 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-05 02:10:37,055 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-71855065', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-71855065?flat'}
2025-05-05 02:10:37,055 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-71855065 is found in opserver
2025-05-05 02:10:37,069 - DEBUG - Do not have enough data to verify VN in agent
2025-05-05 02:10:37,076 - DEBUG - VRF ids for VN ctest-vn-71855065: {}
2025-05-05 02:10:37,076 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-05 02:10:37,083 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0a135b46-1d65-4671-af1b-c572fb0dcddc
2025-05-05 02:10:37,099 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff5bbcf3-6e3b-4f39-a2d4-d56681f69b3f
2025-05-05 02:10:37,186 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d2952ef-5852-4bb9-b776-c546ec2a1d6e
2025-05-05 02:10:37,201 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d2952ef-5852-4bb9-b776-c546ec2a1d6e
2025-05-05 02:10:37,214 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4399cf04-8cb5-4aa3-839e-079f03ddcdb1
2025-05-05 02:10:37,225 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4399cf04-8cb5-4aa3-839e-079f03ddcdb1
2025-05-05 02:10:37,234 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8cb1a1ab-85e1-40fe-bce3-35f89a74eca9
2025-05-05 02:10:37,249 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-05 02:10:37,249 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d2952ef-5852-4bb9-b776-c546ec2a1d6e
2025-05-05 02:10:37,262 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4399cf04-8cb5-4aa3-839e-079f03ddcdb1
2025-05-05 02:10:37,282 - INFO - Verified VN network id 9 for VN 0d2952ef-5852-4bb9-b776-c546ec2a1d6e
2025-05-05 02:10:37,282 - INFO - Verifications in API Server for VN ctest-vn-62739140 passed
2025-05-05 02:10:37,282 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d2952ef-5852-4bb9-b776-c546ec2a1d6e
2025-05-05 02:10:37,296 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4399cf04-8cb5-4aa3-839e-079f03ddcdb1
2025-05-05 02:10:37,305 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4399cf04-8cb5-4aa3-839e-079f03ddcdb1
2025-05-05 02:10:37,313 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8cb1a1ab-85e1-40fe-bce3-35f89a74eca9
2025-05-05 02:10:37,330 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-62739140', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25245955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '948380384470649785', 'uuid-lslong': '13219970664593235310'}, 'enable': 'true', 'created': '2025-05-05T02:10:34', 'last-modified': '2025-05-05T02:10:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.576516'}
2025-05-05 02:10:37,338 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-05 02:10:37,339 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62739140 passed
2025-05-05 02:10:37,339 - DEBUG - ====Verifying policy data for ctest-vn-62739140 in API_Server ======
2025-05-05 02:10:37,339 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-05 02:10:37,347 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0a135b46-1d65-4671-af1b-c572fb0dcddc
2025-05-05 02:10:37,363 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff5bbcf3-6e3b-4f39-a2d4-d56681f69b3f
2025-05-05 02:10:37,442 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d2952ef-5852-4bb9-b776-c546ec2a1d6e
2025-05-05 02:10:37,458 - DEBUG - ==>Verifying data for policy with id: cf984280-6efb-4eac-9fce-641f5a915508, fqn: ['default-domain', 'ctest-TestBasicPolicy-25245955', 'ctest-policy-allow-all-73012553']
2025-05-05 02:10:37,458 - INFO - VN ctest-vn-62739140 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-05 02:10:37,458 - DEBUG - Verifying the vn in opserver
2025-05-05 02:10:37,459 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-62739140 virtual network link through opserver 10.0.0.254
2025-05-05 02:10:37,459 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-05 02:10:37,470 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-62739140', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-62739140?flat'}
2025-05-05 02:10:37,470 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25245955:ctest-vn-62739140 is found in opserver
2025-05-05 02:10:37,482 - DEBUG - Do not have enough data to verify VN in agent
2025-05-05 02:10:37,487 - DEBUG - VRF ids for VN ctest-vn-62739140: {}
2025-05-05 02:10:37,545 - DEBUG - Services list from nova: [