2024-09-14 02:59:02,624 - INFO - Domain Default found not creating
2024-09-14 02:59:02,774 - INFO - Project ctest-TestBasicPolicy-89940860 not found, creating it
2024-09-14 02:59:03,251 - INFO - Created Project:ctest-TestBasicPolicy-89940860, ID : 0b4fc88f-28e0-4465-b6d7-d91ab2769cb4
2024-09-14 02:59:04,706 - INFO - ================================================================================
2024-09-14 02:59:04,706 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-14 02:59:04,706 - 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
2024-09-14 02:59:04,963 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.33': '0'}} with
2024-09-14 02:59:04,964 - INFO - Initial checks done. Running the testcase now
2024-09-14 02:59:04,964 - INFO -
2024-09-14 02:59:05,515 - DEBUG - Response for create_network : {'network': {'id': 'd8bbdc4f-8bb2-4cff-a747-25acd2e34051', 'name': 'ctest-vn-91114539', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-vn-91114539'], 'port_security_enabled': True, 'description': ''}}
2024-09-14 02:59:05,689 - DEBUG - Response for create_subnet : {'subnet': {'id': '6aea176d-95b8-44ab-93b0-e0fb1dbd6488', 'name': '', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'network_id': 'd8bbdc4f-8bb2-4cff-a747-25acd2e34051', 'ip_version': 4, 'cidr': '203.157.244.128/26', 'allocation_pools': [{'start': '203.157.244.130', 'end': '203.157.244.190'}], 'gateway_ip': '203.157.244.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.157.244.130', 'tags': [], 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4'}}
2024-09-14 02:59:05,708 - INFO - Created VN ctest-vn-91114539
2024-09-14 02:59:05,763 - DEBUG - VN ctest-vn-91114539 UUID is d8bbdc4f-8bb2-4cff-a747-25acd2e34051
2024-09-14 02:59:06,069 - DEBUG - Response for create_network : {'network': {'id': '9d1115c4-da7a-4302-946c-a9977c806e60', 'name': 'ctest-vn-37727294', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-vn-37727294'], 'port_security_enabled': True, 'description': ''}}
2024-09-14 02:59:06,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '63f542cb-8c39-4789-8bb0-34a1ddb00596', 'name': '', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'network_id': '9d1115c4-da7a-4302-946c-a9977c806e60', 'ip_version': 4, 'cidr': '142.12.10.128/26', 'allocation_pools': [{'start': '142.12.10.130', 'end': '142.12.10.190'}], 'gateway_ip': '142.12.10.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.12.10.130', 'tags': [], 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4'}}
2024-09-14 02:59:06,309 - INFO - Created VN ctest-vn-37727294
2024-09-14 02:59:06,367 - DEBUG - VN ctest-vn-37727294 UUID is 9d1115c4-da7a-4302-946c-a9977c806e60
2024-09-14 02:59:06,527 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539, 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-89940860:ctest-vn-37727294, 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]
2024-09-14 02:59:06,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8bbdc4f-8bb2-4cff-a747-25acd2e34051', 'name': 'ctest-vn-91114539', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6aea176d-95b8-44ab-93b0-e0fb1dbd6488'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-vn-91114539'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-policy-allow-all-06644262']], 'subnet_ipam': [{'subnet_cidr': '203.157.244.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-14 02:59:07,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d1115c4-da7a-4302-946c-a9977c806e60', 'name': 'ctest-vn-37727294', 'tenant_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'project_id': '0b4fc88f28e04465b6d7d91ab2769cb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63f542cb-8c39-4789-8bb0-34a1ddb00596'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-vn-37727294'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-policy-allow-all-06644262']], 'subnet_ipam': [{'subnet_cidr': '142.12.10.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-14 02:59:07,255 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-14 02:59:07,551 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-14 02:59:07,583 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1
2024-09-14 02:59:07,597 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4
2024-09-14 02:59:07,682 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051
2024-09-14 02:59:07,697 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051
2024-09-14 02:59:07,709 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff
2024-09-14 02:59:07,718 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff
2024-09-14 02:59:07,725 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a40a61b3-33a7-4be7-8d2f-ad2f4f57a905
2024-09-14 02:59:07,732 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-14 02:59:07,732 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051
2024-09-14 02:59:07,744 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff
2024-09-14 02:59:07,762 - INFO - Verified VN network id 9 for VN d8bbdc4f-8bb2-4cff-a747-25acd2e34051
2024-09-14 02:59:07,762 - INFO - Verifications in API Server for VN ctest-vn-91114539 passed
2024-09-14 02:59:07,762 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051
2024-09-14 02:59:07,774 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff
2024-09-14 02:59:07,782 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e1706b88-0010-47d2-b535-838d15a00bff
2024-09-14 02:59:07,790 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a40a61b3-33a7-4be7-8d2f-ad2f4f57a905
2024-09-14 02:59:07,803 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89940860', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15617318367041572095', 'uuid-lslong': '12053644351883133009'}, 'enable': 'true', 'created': '2024-09-14T02:59:05', 'last-modified': '2024-09-14T02:59:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988004'}
2024-09-14 02:59:07,809 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-14 02:59:07,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91114539 passed
2024-09-14 02:59:07,809 - DEBUG - ====Verifying policy data for ctest-vn-91114539 in API_Server ======
2024-09-14 02:59:07,809 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-14 02:59:07,814 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1
2024-09-14 02:59:07,826 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4
2024-09-14 02:59:07,912 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8bbdc4f-8bb2-4cff-a747-25acd2e34051
2024-09-14 02:59:07,926 - DEBUG - ==>Verifying data for policy with id: b88e34b5-791b-4d12-a8ae-46e37499e7dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-policy-allow-all-06644262']
2024-09-14 02:59:07,926 - INFO - VN ctest-vn-91114539 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-14 02:59:07,927 - DEBUG - Verifying the vn in opserver
2024-09-14 02:59:07,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539 virtual network link through opserver 10.0.0.38
2024-09-14 02:59:07,927 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-09-14 02:59:08,218 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-09-14 02:59:08,274 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539?flat'}
2024-09-14 02:59:08,274 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-91114539 is found in opserver
2024-09-14 02:59:08,284 - DEBUG - Do not have enough data to verify VN in agent
2024-09-14 02:59:08,289 - DEBUG - VRF ids for VN ctest-vn-91114539: {}
2024-09-14 02:59:08,289 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-14 02:59:08,294 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1
2024-09-14 02:59:08,306 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4
2024-09-14 02:59:08,383 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60
2024-09-14 02:59:08,398 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60
2024-09-14 02:59:08,412 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da
2024-09-14 02:59:08,420 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da
2024-09-14 02:59:08,427 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/07508b86-9336-4380-9f1f-667821bff725
2024-09-14 02:59:08,433 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-14 02:59:08,433 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60
2024-09-14 02:59:08,445 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da
2024-09-14 02:59:08,463 - INFO - Verified VN network id 10 for VN 9d1115c4-da7a-4302-946c-a9977c806e60
2024-09-14 02:59:08,463 - INFO - Verifications in API Server for VN ctest-vn-37727294 passed
2024-09-14 02:59:08,463 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60
2024-09-14 02:59:08,476 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da
2024-09-14 02:59:08,483 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ae33ff-dd25-494e-b868-f775650e03da
2024-09-14 02:59:08,491 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/07508b86-9336-4380-9f1f-667821bff725
2024-09-14 02:59:08,502 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89940860', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11317851273781986050', 'uuid-lslong': '10695109683192032864'}, 'enable': 'true', 'created': '2024-09-14T02:59:06', 'last-modified': '2024-09-14T02:59:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.444224'}
2024-09-14 02:59:08,508 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-14 02:59:08,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37727294 passed
2024-09-14 02:59:08,508 - DEBUG - ====Verifying policy data for ctest-vn-37727294 in API_Server ======
2024-09-14 02:59:08,508 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2024-09-14 02:59:08,513 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ae07f96b-eaad-4c70-8e2d-0e806d6b26e1
2024-09-14 02:59:08,525 - DEBUG - Requesting: http://10.0.0.38:8082/project/0b4fc88f-28e0-4465-b6d7-d91ab2769cb4
2024-09-14 02:59:08,611 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9d1115c4-da7a-4302-946c-a9977c806e60
2024-09-14 02:59:08,624 - DEBUG - ==>Verifying data for policy with id: b88e34b5-791b-4d12-a8ae-46e37499e7dc, fqn: ['default-domain', 'ctest-TestBasicPolicy-89940860', 'ctest-policy-allow-all-06644262']
2024-09-14 02:59:08,624 - INFO - VN ctest-vn-37727294 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-14 02:59:08,624 - DEBUG - Verifying the vn in opserver
2024-09-14 02:59:08,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294 virtual network link through opserver 10.0.0.38
2024-09-14 02:59:08,625 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2024-09-14 02:59:08,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294?flat'}
2024-09-14 02:59:08,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89940860:ctest-vn-37727294 is found in opserver
2024-09-14 02:59:08,645 - DEBUG - Do not have enough data to verify VN in agent
2024-09-14 02:59:08,650 - DEBUG - VRF ids for VN ctest-vn-37727294: {}
2024-09-14 02:59:08,703 - DEBUG - Services list from nova: [