2025-03-27 02:36:21,215 - INFO - Domain Default found not creating
2025-03-27 02:36:21,397 - INFO - Project ctest-TestBasicPolicy-61652633 not found, creating it
2025-03-27 02:36:21,890 - INFO - Created Project:ctest-TestBasicPolicy-61652633, ID : 5712ddee-4624-4546-835c-3ea99086553e
2025-03-27 02:36:23,446 - INFO - ================================================================================
2025-03-27 02:36:23,446 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 02:36:23,446 - 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-03-27 02:36:23,704 - DEBUG - Nothing to compare xmpp stats {'10.0.0.43': {'10.20.0.6': '0'}} with
2025-03-27 02:36:23,704 - INFO - Initial checks done. Running the testcase now
2025-03-27 02:36:23,704 - INFO -
2025-03-27 02:36:24,276 - DEBUG - Response for create_network : {'network': {'id': '421aa619-7600-40ba-a604-a3e0d8292b35', 'name': 'ctest-vn-80366519', 'tenant_id': '5712ddee46244546835c3ea99086553e', 'project_id': '5712ddee46244546835c3ea99086553e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61652633', 'ctest-vn-80366519'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:36:24,457 - DEBUG - Response for create_subnet : {'subnet': {'id': '85b56aae-c033-4464-a0b1-b7116d851b76', 'name': '', 'tenant_id': '5712ddee46244546835c3ea99086553e', 'network_id': '421aa619-7600-40ba-a604-a3e0d8292b35', 'ip_version': 4, 'cidr': '123.127.57.0/26', 'allocation_pools': [{'start': '123.127.57.2', 'end': '123.127.57.62'}], 'gateway_ip': '123.127.57.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.127.57.2', 'tags': [], 'project_id': '5712ddee46244546835c3ea99086553e'}}
2025-03-27 02:36:24,479 - INFO - Created VN ctest-vn-80366519
2025-03-27 02:36:24,530 - DEBUG - VN ctest-vn-80366519 UUID is 421aa619-7600-40ba-a604-a3e0d8292b35
2025-03-27 02:36:24,833 - DEBUG - Response for create_network : {'network': {'id': '61e58e6b-94f5-499d-974d-8578864903ca', 'name': 'ctest-vn-56779114', 'tenant_id': '5712ddee46244546835c3ea99086553e', 'project_id': '5712ddee46244546835c3ea99086553e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61652633', 'ctest-vn-56779114'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:36:25,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c293a12-41a8-4958-8e28-f695a485fb12', 'name': '', 'tenant_id': '5712ddee46244546835c3ea99086553e', 'network_id': '61e58e6b-94f5-499d-974d-8578864903ca', 'ip_version': 4, 'cidr': '18.17.247.192/26', 'allocation_pools': [{'start': '18.17.247.194', 'end': '18.17.247.254'}], 'gateway_ip': '18.17.247.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.17.247.194', 'tags': [], 'project_id': '5712ddee46244546835c3ea99086553e'}}
2025-03-27 02:36:25,053 - INFO - Created VN ctest-vn-56779114
2025-03-27 02:36:25,102 - DEBUG - VN ctest-vn-56779114 UUID is 61e58e6b-94f5-499d-974d-8578864903ca
2025-03-27 02:36:25,225 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-80366519, 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-61652633:ctest-vn-56779114, 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-03-27 02:36:25,531 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '421aa619-7600-40ba-a604-a3e0d8292b35', 'name': 'ctest-vn-80366519', 'tenant_id': '5712ddee46244546835c3ea99086553e', 'project_id': '5712ddee46244546835c3ea99086553e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85b56aae-c033-4464-a0b1-b7116d851b76'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61652633', 'ctest-vn-80366519'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61652633', 'ctest-policy-allow-all-64833800']], 'subnet_ipam': [{'subnet_cidr': '123.127.57.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:36:25,789 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61e58e6b-94f5-499d-974d-8578864903ca', 'name': 'ctest-vn-56779114', 'tenant_id': '5712ddee46244546835c3ea99086553e', 'project_id': '5712ddee46244546835c3ea99086553e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c293a12-41a8-4958-8e28-f695a485fb12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61652633', 'ctest-vn-56779114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61652633', 'ctest-policy-allow-all-64833800']], 'subnet_ipam': [{'subnet_cidr': '18.17.247.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:36:25,946 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-03-27 02:36:26,263 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-03-27 02:36:26,298 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2e7df936-daff-4f4a-9e2b-b360da6656fc
2025-03-27 02:36:26,314 - DEBUG - Requesting: http://10.0.0.43:8082/project/5712ddee-4624-4546-835c-3ea99086553e
2025-03-27 02:36:26,389 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/421aa619-7600-40ba-a604-a3e0d8292b35
2025-03-27 02:36:26,400 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/421aa619-7600-40ba-a604-a3e0d8292b35
2025-03-27 02:36:26,409 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/db4c7028-bedc-4708-b722-66917a1a4d7c
2025-03-27 02:36:26,417 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/db4c7028-bedc-4708-b722-66917a1a4d7c
2025-03-27 02:36:26,431 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/295b7716-6c77-4894-9950-2bfc5602fcd5
2025-03-27 02:36:26,438 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 02:36:26,438 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/421aa619-7600-40ba-a604-a3e0d8292b35
2025-03-27 02:36:26,447 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/db4c7028-bedc-4708-b722-66917a1a4d7c
2025-03-27 02:36:26,462 - INFO - Verified VN network id 8 for VN 421aa619-7600-40ba-a604-a3e0d8292b35
2025-03-27 02:36:26,462 - INFO - Verifications in API Server for VN ctest-vn-80366519 passed
2025-03-27 02:36:26,462 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/421aa619-7600-40ba-a604-a3e0d8292b35
2025-03-27 02:36:26,474 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/db4c7028-bedc-4708-b722-66917a1a4d7c
2025-03-27 02:36:26,481 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/db4c7028-bedc-4708-b722-66917a1a4d7c
2025-03-27 02:36:26,489 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/295b7716-6c77-4894-9950-2bfc5602fcd5
2025-03-27 02:36:26,502 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-80366519', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61652633', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4763302184181842106', 'uuid-lslong': '11962866696297458485'}, 'enable': 'true', 'created': '2025-03-27T02:36:24', 'last-modified': '2025-03-27T02:36:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994305'}
2025-03-27 02:36:26,509 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 02:36:26,510 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80366519 passed
2025-03-27 02:36:26,510 - DEBUG - ====Verifying policy data for ctest-vn-80366519 in API_Server ======
2025-03-27 02:36:26,510 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-03-27 02:36:26,517 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2e7df936-daff-4f4a-9e2b-b360da6656fc
2025-03-27 02:36:26,531 - DEBUG - Requesting: http://10.0.0.43:8082/project/5712ddee-4624-4546-835c-3ea99086553e
2025-03-27 02:36:26,604 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/421aa619-7600-40ba-a604-a3e0d8292b35
2025-03-27 02:36:26,615 - DEBUG - ==>Verifying data for policy with id: 6f5037fd-56d2-475b-a6ec-131222bca468, fqn: ['default-domain', 'ctest-TestBasicPolicy-61652633', 'ctest-policy-allow-all-64833800']
2025-03-27 02:36:26,615 - INFO - VN ctest-vn-80366519 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 02:36:26,615 - DEBUG - Verifying the vn in opserver
2025-03-27 02:36:26,615 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-80366519 virtual network link through opserver 10.0.0.43
2025-03-27 02:36:26,615 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2025-03-27 02:36:26,913 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2025-03-27 02:36:26,982 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-80366519', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-80366519?flat'}
2025-03-27 02:36:26,982 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-80366519 is found in opserver
2025-03-27 02:36:26,997 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 02:36:27,005 - DEBUG - VRF ids for VN ctest-vn-80366519: {}
2025-03-27 02:36:27,005 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-03-27 02:36:27,013 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2e7df936-daff-4f4a-9e2b-b360da6656fc
2025-03-27 02:36:27,026 - DEBUG - Requesting: http://10.0.0.43:8082/project/5712ddee-4624-4546-835c-3ea99086553e
2025-03-27 02:36:27,101 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/61e58e6b-94f5-499d-974d-8578864903ca
2025-03-27 02:36:27,113 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/61e58e6b-94f5-499d-974d-8578864903ca
2025-03-27 02:36:27,123 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7b1c4000-088a-4560-b82e-52d4fa306c11
2025-03-27 02:36:27,131 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7b1c4000-088a-4560-b82e-52d4fa306c11
2025-03-27 02:36:27,140 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/b0607c86-2c72-483e-a69f-4c4319aacccc
2025-03-27 02:36:27,148 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-27 02:36:27,148 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/61e58e6b-94f5-499d-974d-8578864903ca
2025-03-27 02:36:27,160 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7b1c4000-088a-4560-b82e-52d4fa306c11
2025-03-27 02:36:27,174 - INFO - Verified VN network id 9 for VN 61e58e6b-94f5-499d-974d-8578864903ca
2025-03-27 02:36:27,175 - INFO - Verifications in API Server for VN ctest-vn-56779114 passed
2025-03-27 02:36:27,175 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/61e58e6b-94f5-499d-974d-8578864903ca
2025-03-27 02:36:27,184 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7b1c4000-088a-4560-b82e-52d4fa306c11
2025-03-27 02:36:27,194 - DEBUG - Requesting: http://10.0.0.43:8082/routing-instance/7b1c4000-088a-4560-b82e-52d4fa306c11
2025-03-27 02:36:27,204 - DEBUG - Requesting: http://10.0.0.43:8082/route-target/b0607c86-2c72-483e-a69f-4c4319aacccc
2025-03-27 02:36:27,221 - DEBUG - Control-node 10.0.0.43 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-56779114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61652633', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7054200984057498013', 'uuid-lslong': '10902517025629340618'}, 'enable': 'true', 'created': '2025-03-27T02:36:24', 'last-modified': '2025-03-27T02:36:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.456460'}
2025-03-27 02:36:27,228 - DEBUG - Route Targets: ['target:64512:8000006']
2025-03-27 02:36:27,228 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56779114 passed
2025-03-27 02:36:27,228 - DEBUG - ====Verifying policy data for ctest-vn-56779114 in API_Server ======
2025-03-27 02:36:27,228 - DEBUG - Requesting: http://10.0.0.43:8082/domains
2025-03-27 02:36:27,235 - DEBUG - Requesting: http://10.0.0.43:8082/domain/2e7df936-daff-4f4a-9e2b-b360da6656fc
2025-03-27 02:36:27,250 - DEBUG - Requesting: http://10.0.0.43:8082/project/5712ddee-4624-4546-835c-3ea99086553e
2025-03-27 02:36:27,330 - DEBUG - Requesting: http://10.0.0.43:8082/virtual-network/61e58e6b-94f5-499d-974d-8578864903ca
2025-03-27 02:36:27,342 - DEBUG - ==>Verifying data for policy with id: 6f5037fd-56d2-475b-a6ec-131222bca468, fqn: ['default-domain', 'ctest-TestBasicPolicy-61652633', 'ctest-policy-allow-all-64833800']
2025-03-27 02:36:27,343 - INFO - VN ctest-vn-56779114 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 02:36:27,343 - DEBUG - Verifying the vn in opserver
2025-03-27 02:36:27,343 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-56779114 virtual network link through opserver 10.0.0.43
2025-03-27 02:36:27,343 - DEBUG - Requesting: http://10.0.0.43:8081/analytics/uves/virtual-networks
2025-03-27 02:36:27,355 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-56779114', 'href': 'http://10.0.0.43:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-56779114?flat'}
2025-03-27 02:36:27,355 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61652633:ctest-vn-56779114 is found in opserver
2025-03-27 02:36:27,369 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 02:36:27,376 - DEBUG - VRF ids for VN ctest-vn-56779114: {}
2025-03-27 02:36:27,443 - DEBUG - Services list from nova: [