2025-01-02 13:01:15,470 - INFO - Domain Default found not creating
2025-01-02 13:01:15,618 - INFO - Project ctest-TestBasicPolicy-21438400 not found, creating it
2025-01-02 13:01:16,064 - INFO - Created Project:ctest-TestBasicPolicy-21438400, ID : 8eab47e9-644a-468c-bd09-fdc4cc252386
2025-01-02 13:01:17,493 - INFO - ================================================================================
2025-01-02 13:01:17,493 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-02 13:01:17,493 - 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-01-02 13:01:17,747 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.17': '0'}} with
2025-01-02 13:01:17,747 - INFO - Initial checks done. Running the testcase now
2025-01-02 13:01:17,747 - INFO -
2025-01-02 13:01:18,287 - DEBUG - Response for create_network : {'network': {'id': '1901310f-44c7-46c5-8d9f-4098c8f164f1', 'name': 'ctest-vn-18035235', 'tenant_id': '8eab47e9644a468cbd09fdc4cc252386', 'project_id': '8eab47e9644a468cbd09fdc4cc252386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21438400', 'ctest-vn-18035235'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 13:01:18,500 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd020edb4-3ae4-4d6c-a916-828b53d074a5', 'name': '', 'tenant_id': '8eab47e9644a468cbd09fdc4cc252386', 'network_id': '1901310f-44c7-46c5-8d9f-4098c8f164f1', 'ip_version': 4, 'cidr': '11.249.5.64/26', 'allocation_pools': [{'start': '11.249.5.66', 'end': '11.249.5.126'}], 'gateway_ip': '11.249.5.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.249.5.66', 'tags': [], 'project_id': '8eab47e9644a468cbd09fdc4cc252386'}}
2025-01-02 13:01:18,520 - INFO - Created VN ctest-vn-18035235
2025-01-02 13:01:18,576 - DEBUG - VN ctest-vn-18035235 UUID is 1901310f-44c7-46c5-8d9f-4098c8f164f1
2025-01-02 13:01:18,886 - DEBUG - Response for create_network : {'network': {'id': '922efce9-f30f-4e12-a39a-fef0980972de', 'name': 'ctest-vn-10178620', 'tenant_id': '8eab47e9644a468cbd09fdc4cc252386', 'project_id': '8eab47e9644a468cbd09fdc4cc252386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21438400', 'ctest-vn-10178620'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 13:01:19,103 - DEBUG - Response for create_subnet : {'subnet': {'id': '99c0e20a-45a3-4b72-ba8a-a1a2ce242b2d', 'name': '', 'tenant_id': '8eab47e9644a468cbd09fdc4cc252386', 'network_id': '922efce9-f30f-4e12-a39a-fef0980972de', 'ip_version': 4, 'cidr': '110.0.151.64/26', 'allocation_pools': [{'start': '110.0.151.66', 'end': '110.0.151.126'}], 'gateway_ip': '110.0.151.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.0.151.66', 'tags': [], 'project_id': '8eab47e9644a468cbd09fdc4cc252386'}}
2025-01-02 13:01:19,119 - INFO - Created VN ctest-vn-10178620
2025-01-02 13:01:19,172 - DEBUG - VN ctest-vn-10178620 UUID is 922efce9-f30f-4e12-a39a-fef0980972de
2025-01-02 13:01:19,324 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-18035235, 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-21438400:ctest-vn-10178620, 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-01-02 13:01:19,628 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1901310f-44c7-46c5-8d9f-4098c8f164f1', 'name': 'ctest-vn-18035235', 'tenant_id': '8eab47e9644a468cbd09fdc4cc252386', 'project_id': '8eab47e9644a468cbd09fdc4cc252386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d020edb4-3ae4-4d6c-a916-828b53d074a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21438400', 'ctest-vn-18035235'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21438400', 'ctest-policy-allow-all-77555993']], 'subnet_ipam': [{'subnet_cidr': '11.249.5.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 13:01:19,856 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '922efce9-f30f-4e12-a39a-fef0980972de', 'name': 'ctest-vn-10178620', 'tenant_id': '8eab47e9644a468cbd09fdc4cc252386', 'project_id': '8eab47e9644a468cbd09fdc4cc252386', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99c0e20a-45a3-4b72-ba8a-a1a2ce242b2d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21438400', 'ctest-vn-10178620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21438400', 'ctest-policy-allow-all-77555993']], 'subnet_ipam': [{'subnet_cidr': '110.0.151.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 13:01:20,004 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-01-02 13:01:20,302 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-01-02 13:01:20,328 - DEBUG - Requesting: http://10.0.0.47:8082/domain/42b33a92-20ba-4c68-b788-cdc81c397814
2025-01-02 13:01:20,342 - DEBUG - Requesting: http://10.0.0.47:8082/project/8eab47e9-644a-468c-bd09-fdc4cc252386
2025-01-02 13:01:20,418 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/1901310f-44c7-46c5-8d9f-4098c8f164f1
2025-01-02 13:01:20,428 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/1901310f-44c7-46c5-8d9f-4098c8f164f1
2025-01-02 13:01:20,438 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/7c8e72a0-0e9c-4b39-8b7d-1e8d3b266db1
2025-01-02 13:01:20,446 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/7c8e72a0-0e9c-4b39-8b7d-1e8d3b266db1
2025-01-02 13:01:20,453 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/75eaccd0-c20c-4670-9c94-6b374c227175
2025-01-02 13:01:20,461 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 13:01:20,461 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/1901310f-44c7-46c5-8d9f-4098c8f164f1
2025-01-02 13:01:20,470 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/7c8e72a0-0e9c-4b39-8b7d-1e8d3b266db1
2025-01-02 13:01:20,485 - INFO - Verified VN network id 9 for VN 1901310f-44c7-46c5-8d9f-4098c8f164f1
2025-01-02 13:01:20,485 - INFO - Verifications in API Server for VN ctest-vn-18035235 passed
2025-01-02 13:01:20,485 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/1901310f-44c7-46c5-8d9f-4098c8f164f1
2025-01-02 13:01:20,498 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/7c8e72a0-0e9c-4b39-8b7d-1e8d3b266db1
2025-01-02 13:01:20,506 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/7c8e72a0-0e9c-4b39-8b7d-1e8d3b266db1
2025-01-02 13:01:20,515 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/75eaccd0-c20c-4670-9c94-6b374c227175
2025-01-02 13:01:20,528 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-18035235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21438400', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1801775267573089989', 'uuid-lslong': '10204946305595303153'}, 'enable': 'true', 'created': '2025-01-02T13:01:18', 'last-modified': '2025-01-02T13:01:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923973'}
2025-01-02 13:01:20,534 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 13:01:20,534 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18035235 passed
2025-01-02 13:01:20,535 - DEBUG - ====Verifying policy data for ctest-vn-18035235 in API_Server ======
2025-01-02 13:01:20,535 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-01-02 13:01:20,540 - DEBUG - Requesting: http://10.0.0.47:8082/domain/42b33a92-20ba-4c68-b788-cdc81c397814
2025-01-02 13:01:20,552 - DEBUG - Requesting: http://10.0.0.47:8082/project/8eab47e9-644a-468c-bd09-fdc4cc252386
2025-01-02 13:01:20,627 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/1901310f-44c7-46c5-8d9f-4098c8f164f1
2025-01-02 13:01:20,637 - DEBUG - ==>Verifying data for policy with id: 68a1f3ef-4b84-48f2-8d64-2919faf1198d, fqn: ['default-domain', 'ctest-TestBasicPolicy-21438400', 'ctest-policy-allow-all-77555993']
2025-01-02 13:01:20,637 - INFO - VN ctest-vn-18035235 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 13:01:20,637 - DEBUG - Verifying the vn in opserver
2025-01-02 13:01:20,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-18035235 virtual network link through opserver 10.0.0.47
2025-01-02 13:01:20,637 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2025-01-02 13:01:20,929 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2025-01-02 13:01:20,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-18035235', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-18035235?flat'}
2025-01-02 13:01:20,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-18035235 is found in opserver
2025-01-02 13:01:20,996 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 13:01:21,002 - DEBUG - VRF ids for VN ctest-vn-18035235: {}
2025-01-02 13:01:21,002 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-01-02 13:01:21,011 - DEBUG - Requesting: http://10.0.0.47:8082/domain/42b33a92-20ba-4c68-b788-cdc81c397814
2025-01-02 13:01:21,024 - DEBUG - Requesting: http://10.0.0.47:8082/project/8eab47e9-644a-468c-bd09-fdc4cc252386
2025-01-02 13:01:21,091 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/922efce9-f30f-4e12-a39a-fef0980972de
2025-01-02 13:01:21,105 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/922efce9-f30f-4e12-a39a-fef0980972de
2025-01-02 13:01:21,114 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/3eb84401-78a4-4248-b80e-8e801e5acbbd
2025-01-02 13:01:21,121 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/3eb84401-78a4-4248-b80e-8e801e5acbbd
2025-01-02 13:01:21,129 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/f3ef7627-a972-496c-a53e-c6f42f45936c
2025-01-02 13:01:21,135 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 13:01:21,135 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/922efce9-f30f-4e12-a39a-fef0980972de
2025-01-02 13:01:21,144 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/3eb84401-78a4-4248-b80e-8e801e5acbbd
2025-01-02 13:01:21,159 - INFO - Verified VN network id 10 for VN 922efce9-f30f-4e12-a39a-fef0980972de
2025-01-02 13:01:21,159 - INFO - Verifications in API Server for VN ctest-vn-10178620 passed
2025-01-02 13:01:21,159 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/922efce9-f30f-4e12-a39a-fef0980972de
2025-01-02 13:01:21,167 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/3eb84401-78a4-4248-b80e-8e801e5acbbd
2025-01-02 13:01:21,174 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/3eb84401-78a4-4248-b80e-8e801e5acbbd
2025-01-02 13:01:21,180 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/f3ef7627-a972-496c-a53e-c6f42f45936c
2025-01-02 13:01:21,191 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-10178620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21438400', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10533634660201614866', 'uuid-lslong': '11789015283892056798'}, 'enable': 'true', 'created': '2025-01-02T13:01:18', 'last-modified': '2025-01-02T13:01:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352041'}
2025-01-02 13:01:21,198 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 13:01:21,198 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10178620 passed
2025-01-02 13:01:21,198 - DEBUG - ====Verifying policy data for ctest-vn-10178620 in API_Server ======
2025-01-02 13:01:21,198 - DEBUG - Requesting: http://10.0.0.47:8082/domains
2025-01-02 13:01:21,204 - DEBUG - Requesting: http://10.0.0.47:8082/domain/42b33a92-20ba-4c68-b788-cdc81c397814
2025-01-02 13:01:21,215 - DEBUG - Requesting: http://10.0.0.47:8082/project/8eab47e9-644a-468c-bd09-fdc4cc252386
2025-01-02 13:01:21,293 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/922efce9-f30f-4e12-a39a-fef0980972de
2025-01-02 13:01:21,304 - DEBUG - ==>Verifying data for policy with id: 68a1f3ef-4b84-48f2-8d64-2919faf1198d, fqn: ['default-domain', 'ctest-TestBasicPolicy-21438400', 'ctest-policy-allow-all-77555993']
2025-01-02 13:01:21,304 - INFO - VN ctest-vn-10178620 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 13:01:21,304 - DEBUG - Verifying the vn in opserver
2025-01-02 13:01:21,305 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-10178620 virtual network link through opserver 10.0.0.47
2025-01-02 13:01:21,305 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks
2025-01-02 13:01:21,316 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-10178620', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-10178620?flat'}
2025-01-02 13:01:21,316 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21438400:ctest-vn-10178620 is found in opserver
2025-01-02 13:01:21,327 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 13:01:21,332 - DEBUG - VRF ids for VN ctest-vn-10178620: {}
2025-01-02 13:01:21,387 - DEBUG - Services list from nova: [