2024-08-30 14:51:21,474 - INFO - Domain Default found not creating
2024-08-30 14:51:21,652 - INFO - Project ctest-TestBasicPolicy-63047437 not found, creating it
2024-08-30 14:51:22,176 - INFO - Created Project:ctest-TestBasicPolicy-63047437, ID : f189d990-03e2-427f-b7e3-7d1d7bf17cbd
2024-08-30 14:51:23,737 - INFO - ================================================================================
2024-08-30 14:51:23,737 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-30 14:51:23,737 - 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-08-30 14:51:24,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.20': '0'}} with
2024-08-30 14:51:24,000 - INFO - Initial checks done. Running the testcase now
2024-08-30 14:51:24,000 - INFO -
2024-08-30 14:51:24,581 - DEBUG - Response for create_network : {'network': {'id': '4dad7c2a-8c05-4f8c-a661-e951cf36628c', 'name': 'ctest-vn-70050601', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-vn-70050601'], 'port_security_enabled': True, 'description': ''}}
2024-08-30 14:51:24,749 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0cbab5e-37cc-46a6-a39d-342e80cf55e9', 'name': '', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'network_id': '4dad7c2a-8c05-4f8c-a661-e951cf36628c', 'ip_version': 4, 'cidr': '58.174.118.128/26', 'allocation_pools': [{'start': '58.174.118.130', 'end': '58.174.118.190'}], 'gateway_ip': '58.174.118.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.174.118.130', 'tags': [], 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd'}}
2024-08-30 14:51:24,770 - INFO - Created VN ctest-vn-70050601
2024-08-30 14:51:24,824 - DEBUG - VN ctest-vn-70050601 UUID is 4dad7c2a-8c05-4f8c-a661-e951cf36628c
2024-08-30 14:51:25,240 - DEBUG - Response for create_network : {'network': {'id': 'e3b4a195-2b4d-4a2a-a999-8d5efbeadf63', 'name': 'ctest-vn-76424355', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-vn-76424355'], 'port_security_enabled': True, 'description': ''}}
2024-08-30 14:51:25,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '76ad1421-8754-4ac0-b2c4-38b3b771e5b0', 'name': '', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'network_id': 'e3b4a195-2b4d-4a2a-a999-8d5efbeadf63', 'ip_version': 4, 'cidr': '30.118.76.64/26', 'allocation_pools': [{'start': '30.118.76.66', 'end': '30.118.76.126'}], 'gateway_ip': '30.118.76.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.118.76.66', 'tags': [], 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd'}}
2024-08-30 14:51:25,500 - INFO - Created VN ctest-vn-76424355
2024-08-30 14:51:25,552 - DEBUG - VN ctest-vn-76424355 UUID is e3b4a195-2b4d-4a2a-a999-8d5efbeadf63
2024-08-30 14:51:25,676 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601, 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-63047437:ctest-vn-76424355, 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-08-30 14:51:25,980 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4dad7c2a-8c05-4f8c-a661-e951cf36628c', 'name': 'ctest-vn-70050601', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0cbab5e-37cc-46a6-a39d-342e80cf55e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-vn-70050601'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-policy-allow-all-58122314']], 'subnet_ipam': [{'subnet_cidr': '58.174.118.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-30 14:51:26,340 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3b4a195-2b4d-4a2a-a999-8d5efbeadf63', 'name': 'ctest-vn-76424355', 'tenant_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'project_id': 'f189d99003e2427fb7e37d1d7bf17cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76ad1421-8754-4ac0-b2c4-38b3b771e5b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-vn-76424355'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-policy-allow-all-58122314']], 'subnet_ipam': [{'subnet_cidr': '30.118.76.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-30 14:51:26,528 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-30 14:51:26,858 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-30 14:51:26,920 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788
2024-08-30 14:51:26,938 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd
2024-08-30 14:51:27,037 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c
2024-08-30 14:51:27,053 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c
2024-08-30 14:51:27,062 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50
2024-08-30 14:51:27,072 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50
2024-08-30 14:51:27,080 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/40ce31fd-90f4-4324-b8a8-0c8d8927967c
2024-08-30 14:51:27,089 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-30 14:51:27,089 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c
2024-08-30 14:51:27,098 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50
2024-08-30 14:51:27,111 - INFO - Verified VN network id 9 for VN 4dad7c2a-8c05-4f8c-a661-e951cf36628c
2024-08-30 14:51:27,111 - INFO - Verifications in API Server for VN ctest-vn-70050601 passed
2024-08-30 14:51:27,112 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c
2024-08-30 14:51:27,122 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50
2024-08-30 14:51:27,132 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/c18c2e92-9b3f-45c2-bcc8-a5fde4980d50
2024-08-30 14:51:27,139 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/40ce31fd-90f4-4324-b8a8-0c8d8927967c
2024-08-30 14:51:27,154 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63047437', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5597266434071023500', 'uuid-lslong': '11989120220615041676'}, 'enable': 'true', 'created': '2024-08-30T14:51:24', 'last-modified': '2024-08-30T14:51:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.201718'}
2024-08-30 14:51:27,163 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-30 14:51:27,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70050601 passed
2024-08-30 14:51:27,163 - DEBUG - ====Verifying policy data for ctest-vn-70050601 in API_Server ======
2024-08-30 14:51:27,163 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-30 14:51:27,170 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788
2024-08-30 14:51:27,183 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd
2024-08-30 14:51:27,258 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/4dad7c2a-8c05-4f8c-a661-e951cf36628c
2024-08-30 14:51:27,268 - DEBUG - ==>Verifying data for policy with id: 169fbf3b-47db-47f3-a8c6-0c8bccd5d6a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-policy-allow-all-58122314']
2024-08-30 14:51:27,268 - INFO - VN ctest-vn-70050601 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-30 14:51:27,268 - DEBUG - Verifying the vn in opserver
2024-08-30 14:51:27,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601 virtual network link through opserver 10.0.0.23
2024-08-30 14:51:27,269 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-08-30 14:51:27,570 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-08-30 14:51:27,652 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601?flat'}
2024-08-30 14:51:27,652 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-70050601 is found in opserver
2024-08-30 14:51:27,666 - DEBUG - Do not have enough data to verify VN in agent
2024-08-30 14:51:27,674 - DEBUG - VRF ids for VN ctest-vn-70050601: {}
2024-08-30 14:51:27,675 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-30 14:51:27,683 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788
2024-08-30 14:51:27,698 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd
2024-08-30 14:51:27,769 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63
2024-08-30 14:51:27,781 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63
2024-08-30 14:51:27,789 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d
2024-08-30 14:51:27,797 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d
2024-08-30 14:51:27,805 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0c939a3d-aac1-4b9a-b6e6-eee06c357205
2024-08-30 14:51:27,813 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-30 14:51:27,813 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63
2024-08-30 14:51:27,823 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d
2024-08-30 14:51:27,841 - INFO - Verified VN network id 10 for VN e3b4a195-2b4d-4a2a-a999-8d5efbeadf63
2024-08-30 14:51:27,841 - INFO - Verifications in API Server for VN ctest-vn-76424355 passed
2024-08-30 14:51:27,841 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63
2024-08-30 14:51:27,852 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d
2024-08-30 14:51:27,859 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f0faffc6-d538-4f6f-bfb8-dd5f5483b14d
2024-08-30 14:51:27,867 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0c939a3d-aac1-4b9a-b6e6-eee06c357205
2024-08-30 14:51:27,882 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63047437', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16407917004466244138', 'uuid-lslong': '12220954502939467619'}, 'enable': 'true', 'created': '2024-08-30T14:51:25', 'last-modified': '2024-08-30T14:51:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.603421'}
2024-08-30 14:51:27,889 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-30 14:51:27,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76424355 passed
2024-08-30 14:51:27,889 - DEBUG - ====Verifying policy data for ctest-vn-76424355 in API_Server ======
2024-08-30 14:51:27,889 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-30 14:51:27,896 - DEBUG - Requesting: http://10.0.0.23:8082/domain/4a149188-617b-4383-abc9-d5bde5532788
2024-08-30 14:51:27,908 - DEBUG - Requesting: http://10.0.0.23:8082/project/f189d990-03e2-427f-b7e3-7d1d7bf17cbd
2024-08-30 14:51:27,983 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e3b4a195-2b4d-4a2a-a999-8d5efbeadf63
2024-08-30 14:51:27,991 - DEBUG - ==>Verifying data for policy with id: 169fbf3b-47db-47f3-a8c6-0c8bccd5d6a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-63047437', 'ctest-policy-allow-all-58122314']
2024-08-30 14:51:27,991 - INFO - VN ctest-vn-76424355 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-30 14:51:27,992 - DEBUG - Verifying the vn in opserver
2024-08-30 14:51:27,992 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355 virtual network link through opserver 10.0.0.23
2024-08-30 14:51:27,992 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-08-30 14:51:28,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355?flat'}
2024-08-30 14:51:28,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63047437:ctest-vn-76424355 is found in opserver
2024-08-30 14:51:28,017 - DEBUG - Do not have enough data to verify VN in agent
2024-08-30 14:51:28,024 - DEBUG - VRF ids for VN ctest-vn-76424355: {}
2024-08-30 14:51:28,085 - DEBUG - Services list from nova: [