2025-02-17 18:46:56,129 - INFO - Domain Default found not creating
2025-02-17 18:46:56,305 - INFO - Project ctest-TestBasicPolicy-29401368 not found, creating it
2025-02-17 18:46:56,806 - INFO - Created Project:ctest-TestBasicPolicy-29401368, ID : 4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8
2025-02-17 18:46:58,455 - INFO - ================================================================================
2025-02-17 18:46:58,455 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-17 18:46:58,456 - 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-02-17 18:46:58,717 - DEBUG - Nothing to compare xmpp stats {'10.0.0.58': {'10.20.0.20': '0'}} with
2025-02-17 18:46:58,717 - INFO - Initial checks done. Running the testcase now
2025-02-17 18:46:58,718 - INFO -
2025-02-17 18:46:59,340 - DEBUG - Response for create_network : {'network': {'id': '4023cec2-de4f-48b8-b1da-ab752304ecbd', 'name': 'ctest-vn-52385605', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-vn-52385605'], 'port_security_enabled': True, 'description': ''}}
2025-02-17 18:46:59,544 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f37470b-3cfd-4bc8-b399-acb86fc2e528', 'name': '', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'network_id': '4023cec2-de4f-48b8-b1da-ab752304ecbd', 'ip_version': 4, 'cidr': '219.230.73.64/26', 'allocation_pools': [{'start': '219.230.73.66', 'end': '219.230.73.126'}], 'gateway_ip': '219.230.73.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.230.73.66', 'tags': [], 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8'}}
2025-02-17 18:46:59,567 - INFO - Created VN ctest-vn-52385605
2025-02-17 18:46:59,622 - DEBUG - VN ctest-vn-52385605 UUID is 4023cec2-de4f-48b8-b1da-ab752304ecbd
2025-02-17 18:46:59,959 - DEBUG - Response for create_network : {'network': {'id': '656ced23-b299-4604-a5b8-b3fabb9135e5', 'name': 'ctest-vn-27849003', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-vn-27849003'], 'port_security_enabled': True, 'description': ''}}
2025-02-17 18:47:00,152 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a56d11c7-22d3-4cd4-8ba7-5a286198e73b', 'name': '', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'network_id': '656ced23-b299-4604-a5b8-b3fabb9135e5', 'ip_version': 4, 'cidr': '210.20.220.64/26', 'allocation_pools': [{'start': '210.20.220.66', 'end': '210.20.220.126'}], 'gateway_ip': '210.20.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.20.220.66', 'tags': [], 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8'}}
2025-02-17 18:47:00,173 - INFO - Created VN ctest-vn-27849003
2025-02-17 18:47:00,230 - DEBUG - VN ctest-vn-27849003 UUID is 656ced23-b299-4604-a5b8-b3fabb9135e5
2025-02-17 18:47:00,355 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605, 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-29401368:ctest-vn-27849003, 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-02-17 18:47:00,656 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4023cec2-de4f-48b8-b1da-ab752304ecbd', 'name': 'ctest-vn-52385605', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f37470b-3cfd-4bc8-b399-acb86fc2e528'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-vn-52385605'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-policy-allow-all-24329672']], 'subnet_ipam': [{'subnet_cidr': '219.230.73.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-17 18:47:00,907 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '656ced23-b299-4604-a5b8-b3fabb9135e5', 'name': 'ctest-vn-27849003', 'tenant_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'project_id': '4d56c5f20d8a4629a81f9a27fc80d9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a56d11c7-22d3-4cd4-8ba7-5a286198e73b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-vn-27849003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-policy-allow-all-24329672']], 'subnet_ipam': [{'subnet_cidr': '210.20.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-17 18:47:01,066 - DEBUG - Requesting: http://10.0.0.58:8082/domains
2025-02-17 18:47:01,405 - DEBUG - Requesting: http://10.0.0.58:8082/domains
2025-02-17 18:47:01,440 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411
2025-02-17 18:47:01,458 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8
2025-02-17 18:47:01,540 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd
2025-02-17 18:47:01,557 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd
2025-02-17 18:47:01,571 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65
2025-02-17 18:47:01,582 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65
2025-02-17 18:47:01,591 - DEBUG - Requesting: http://10.0.0.58:8082/route-target/cda6bcac-e4f3-4ab0-8001-99f3b4d2bbf7
2025-02-17 18:47:01,599 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-17 18:47:01,599 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd
2025-02-17 18:47:01,615 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65
2025-02-17 18:47:01,632 - INFO - Verified VN network id 8 for VN 4023cec2-de4f-48b8-b1da-ab752304ecbd
2025-02-17 18:47:01,632 - INFO - Verifications in API Server for VN ctest-vn-52385605 passed
2025-02-17 18:47:01,632 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd
2025-02-17 18:47:01,643 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65
2025-02-17 18:47:01,651 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/b76ce59e-f10e-44e2-a0a9-c5e079a4ab65
2025-02-17 18:47:01,659 - DEBUG - Requesting: http://10.0.0.58:8082/route-target/cda6bcac-e4f3-4ab0-8001-99f3b4d2bbf7
2025-02-17 18:47:01,673 - DEBUG - Control-node 10.0.0.58 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29401368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4621764978960976056', 'uuid-lslong': '12815744209223216317'}, 'enable': 'true', 'created': '2025-02-17T18:46:59', 'last-modified': '2025-02-17T18:47:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.034208'}
2025-02-17 18:47:01,681 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-17 18:47:01,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52385605 passed
2025-02-17 18:47:01,681 - DEBUG - ====Verifying policy data for ctest-vn-52385605 in API_Server ======
2025-02-17 18:47:01,682 - DEBUG - Requesting: http://10.0.0.58:8082/domains
2025-02-17 18:47:01,688 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411
2025-02-17 18:47:01,702 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8
2025-02-17 18:47:01,785 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/4023cec2-de4f-48b8-b1da-ab752304ecbd
2025-02-17 18:47:01,796 - DEBUG - ==>Verifying data for policy with id: f03e534c-0858-42ae-9273-03bd213c4a71, fqn: ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-policy-allow-all-24329672']
2025-02-17 18:47:01,796 - INFO - VN ctest-vn-52385605 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-17 18:47:01,797 - DEBUG - Verifying the vn in opserver
2025-02-17 18:47:01,797 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605 virtual network link through opserver 10.0.0.58
2025-02-17 18:47:01,797 - DEBUG - Requesting: http://10.0.0.58:8081/analytics/uves/virtual-networks
2025-02-17 18:47:02,145 - DEBUG - Requesting: http://10.0.0.58:8081/analytics/uves/virtual-networks
2025-02-17 18:47:02,221 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605', 'href': 'http://10.0.0.58:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605?flat'}
2025-02-17 18:47:02,221 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-52385605 is found in opserver
2025-02-17 18:47:02,234 - DEBUG - Do not have enough data to verify VN in agent
2025-02-17 18:47:02,239 - DEBUG - VRF ids for VN ctest-vn-52385605: {}
2025-02-17 18:47:02,240 - DEBUG - Requesting: http://10.0.0.58:8082/domains
2025-02-17 18:47:02,247 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411
2025-02-17 18:47:02,264 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8
2025-02-17 18:47:02,348 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5
2025-02-17 18:47:02,365 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5
2025-02-17 18:47:02,377 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c
2025-02-17 18:47:02,387 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c
2025-02-17 18:47:02,395 - DEBUG - Requesting: http://10.0.0.58:8082/route-target/11979d1f-b146-47a6-9a94-15cb545dce00
2025-02-17 18:47:02,403 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-17 18:47:02,403 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5
2025-02-17 18:47:02,414 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c
2025-02-17 18:47:02,430 - INFO - Verified VN network id 9 for VN 656ced23-b299-4604-a5b8-b3fabb9135e5
2025-02-17 18:47:02,430 - INFO - Verifications in API Server for VN ctest-vn-27849003 passed
2025-02-17 18:47:02,430 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5
2025-02-17 18:47:02,441 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c
2025-02-17 18:47:02,450 - DEBUG - Requesting: http://10.0.0.58:8082/routing-instance/c81d4c27-ea65-4fd7-a8b8-edba9a91d16c
2025-02-17 18:47:02,457 - DEBUG - Requesting: http://10.0.0.58:8082/route-target/11979d1f-b146-47a6-9a94-15cb545dce00
2025-02-17 18:47:02,473 - DEBUG - Control-node 10.0.0.58 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29401368', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7308477032891500036', 'uuid-lslong': '11941492301442921957'}, 'enable': 'true', 'created': '2025-02-17T18:46:59', 'last-modified': '2025-02-17T18:47:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.591371'}
2025-02-17 18:47:02,482 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-17 18:47:02,482 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27849003 passed
2025-02-17 18:47:02,482 - DEBUG - ====Verifying policy data for ctest-vn-27849003 in API_Server ======
2025-02-17 18:47:02,482 - DEBUG - Requesting: http://10.0.0.58:8082/domains
2025-02-17 18:47:02,489 - DEBUG - Requesting: http://10.0.0.58:8082/domain/8b546f0c-8e15-484f-bc3e-6e9a863a2411
2025-02-17 18:47:02,502 - DEBUG - Requesting: http://10.0.0.58:8082/project/4d56c5f2-0d8a-4629-a81f-9a27fc80d9b8
2025-02-17 18:47:02,586 - DEBUG - Requesting: http://10.0.0.58:8082/virtual-network/656ced23-b299-4604-a5b8-b3fabb9135e5
2025-02-17 18:47:02,600 - DEBUG - ==>Verifying data for policy with id: f03e534c-0858-42ae-9273-03bd213c4a71, fqn: ['default-domain', 'ctest-TestBasicPolicy-29401368', 'ctest-policy-allow-all-24329672']
2025-02-17 18:47:02,600 - INFO - VN ctest-vn-27849003 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-17 18:47:02,600 - DEBUG - Verifying the vn in opserver
2025-02-17 18:47:02,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003 virtual network link through opserver 10.0.0.58
2025-02-17 18:47:02,601 - DEBUG - Requesting: http://10.0.0.58:8081/analytics/uves/virtual-networks
2025-02-17 18:47:02,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003', 'href': 'http://10.0.0.58:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003?flat'}
2025-02-17 18:47:02,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29401368:ctest-vn-27849003 is found in opserver
2025-02-17 18:47:02,626 - DEBUG - Do not have enough data to verify VN in agent
2025-02-17 18:47:02,631 - DEBUG - VRF ids for VN ctest-vn-27849003: {}
2025-02-17 18:47:02,701 - DEBUG - Services list from nova: [