2024-08-26 23:42:29,983 - INFO - Domain Default found not creating
2024-08-26 23:42:30,147 - INFO - Project ctest-TestBasicPolicy-98891502 not found, creating it
2024-08-26 23:42:30,615 - INFO - Created Project:ctest-TestBasicPolicy-98891502, ID : f09c5155-0e37-4ed3-a7b3-9ccdaa25c164
2024-08-26 23:42:32,134 - INFO - ================================================================================
2024-08-26 23:42:32,134 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 23:42:32,134 - 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-26 23:42:32,394 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.6': '0'}} with
2024-08-26 23:42:32,395 - INFO - Initial checks done. Running the testcase now
2024-08-26 23:42:32,395 - INFO -
2024-08-26 23:42:32,940 - DEBUG - Response for create_network : {'network': {'id': '979e765a-0eb6-4030-9224-c9a92dd5946c', 'name': 'ctest-vn-79399884', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-vn-79399884'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 23:42:33,158 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e37b8f0-4dee-4d2a-aee6-9e9b372da5ac', 'name': '', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'network_id': '979e765a-0eb6-4030-9224-c9a92dd5946c', 'ip_version': 4, 'cidr': '63.188.245.64/26', 'allocation_pools': [{'start': '63.188.245.66', 'end': '63.188.245.126'}], 'gateway_ip': '63.188.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.188.245.66', 'tags': [], 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164'}}
2024-08-26 23:42:33,179 - INFO - Created VN ctest-vn-79399884
2024-08-26 23:42:33,233 - DEBUG - VN ctest-vn-79399884 UUID is 979e765a-0eb6-4030-9224-c9a92dd5946c
2024-08-26 23:42:33,525 - DEBUG - Response for create_network : {'network': {'id': 'b371af61-6bfc-4166-a33f-63f3f5cdfef0', 'name': 'ctest-vn-82058897', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-vn-82058897'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 23:42:33,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '22223a3f-b5cc-4bd1-8149-e946d64f11fd', 'name': '', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'network_id': 'b371af61-6bfc-4166-a33f-63f3f5cdfef0', 'ip_version': 4, 'cidr': '54.189.240.128/26', 'allocation_pools': [{'start': '54.189.240.130', 'end': '54.189.240.190'}], 'gateway_ip': '54.189.240.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.189.240.130', 'tags': [], 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164'}}
2024-08-26 23:42:33,741 - INFO - Created VN ctest-vn-82058897
2024-08-26 23:42:33,793 - DEBUG - VN ctest-vn-82058897 UUID is b371af61-6bfc-4166-a33f-63f3f5cdfef0
2024-08-26 23:42:33,905 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884, 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-98891502:ctest-vn-82058897, 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-26 23:42:34,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '979e765a-0eb6-4030-9224-c9a92dd5946c', 'name': 'ctest-vn-79399884', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e37b8f0-4dee-4d2a-aee6-9e9b372da5ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-vn-79399884'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-policy-allow-all-29859322']], 'subnet_ipam': [{'subnet_cidr': '63.188.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 23:42:34,490 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b371af61-6bfc-4166-a33f-63f3f5cdfef0', 'name': 'ctest-vn-82058897', 'tenant_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'project_id': 'f09c51550e374ed3a7b39ccdaa25c164', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22223a3f-b5cc-4bd1-8149-e946d64f11fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-vn-82058897'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-policy-allow-all-29859322']], 'subnet_ipam': [{'subnet_cidr': '54.189.240.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 23:42:34,613 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 23:42:34,918 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 23:42:34,950 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef
2024-08-26 23:42:34,965 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164
2024-08-26 23:42:35,045 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c
2024-08-26 23:42:35,056 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c
2024-08-26 23:42:35,065 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff
2024-08-26 23:42:35,072 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff
2024-08-26 23:42:35,080 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/55326f50-5a0e-45e5-8842-47d06e282b51
2024-08-26 23:42:35,088 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 23:42:35,088 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c
2024-08-26 23:42:35,097 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff
2024-08-26 23:42:35,112 - INFO - Verified VN network id 9 for VN 979e765a-0eb6-4030-9224-c9a92dd5946c
2024-08-26 23:42:35,112 - INFO - Verifications in API Server for VN ctest-vn-79399884 passed
2024-08-26 23:42:35,112 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c
2024-08-26 23:42:35,124 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff
2024-08-26 23:42:35,133 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/e7261280-634b-45b4-8bdb-0040e1444dff
2024-08-26 23:42:35,142 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/55326f50-5a0e-45e5-8842-47d06e282b51
2024-08-26 23:42:35,158 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98891502', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10925299875213361200', 'uuid-lslong': '10530763557154690156'}, 'enable': 'true', 'created': '2024-08-26T23:42:32', 'last-modified': '2024-08-26T23:42:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974116'}
2024-08-26 23:42:35,166 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 23:42:35,166 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79399884 passed
2024-08-26 23:42:35,166 - DEBUG - ====Verifying policy data for ctest-vn-79399884 in API_Server ======
2024-08-26 23:42:35,166 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 23:42:35,173 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef
2024-08-26 23:42:35,185 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164
2024-08-26 23:42:35,255 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/979e765a-0eb6-4030-9224-c9a92dd5946c
2024-08-26 23:42:35,263 - DEBUG - ==>Verifying data for policy with id: 99198865-4b5a-48c6-ad38-15e454d7af69, fqn: ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-policy-allow-all-29859322']
2024-08-26 23:42:35,263 - INFO - VN ctest-vn-79399884 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 23:42:35,264 - DEBUG - Verifying the vn in opserver
2024-08-26 23:42:35,264 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884 virtual network link through opserver 10.0.0.30
2024-08-26 23:42:35,264 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-08-26 23:42:35,556 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-08-26 23:42:35,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884?flat'}
2024-08-26 23:42:35,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-79399884 is found in opserver
2024-08-26 23:42:35,630 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 23:42:35,636 - DEBUG - VRF ids for VN ctest-vn-79399884: {}
2024-08-26 23:42:35,636 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 23:42:35,641 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef
2024-08-26 23:42:35,654 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164
2024-08-26 23:42:35,726 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0
2024-08-26 23:42:35,736 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0
2024-08-26 23:42:35,744 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd
2024-08-26 23:42:35,751 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd
2024-08-26 23:42:35,758 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e72ea21e-0c1c-43fd-9205-e69642dba7bf
2024-08-26 23:42:35,765 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 23:42:35,765 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0
2024-08-26 23:42:35,773 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd
2024-08-26 23:42:35,786 - INFO - Verified VN network id 10 for VN b371af61-6bfc-4166-a33f-63f3f5cdfef0
2024-08-26 23:42:35,786 - INFO - Verifications in API Server for VN ctest-vn-82058897 passed
2024-08-26 23:42:35,786 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0
2024-08-26 23:42:35,794 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd
2024-08-26 23:42:35,802 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2e4e073d-4c9f-46dc-90b5-d2fecd07c4cd
2024-08-26 23:42:35,809 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/e72ea21e-0c1c-43fd-9205-e69642dba7bf
2024-08-26 23:42:35,822 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98891502', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12930308838115787110', 'uuid-lslong': '11763230651167145712'}, 'enable': 'true', 'created': '2024-08-26T23:42:33', 'last-modified': '2024-08-26T23:42:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399157'}
2024-08-26 23:42:35,829 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 23:42:35,829 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82058897 passed
2024-08-26 23:42:35,829 - DEBUG - ====Verifying policy data for ctest-vn-82058897 in API_Server ======
2024-08-26 23:42:35,829 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-26 23:42:35,836 - DEBUG - Requesting: http://10.0.0.30:8082/domain/b66525f2-98d4-4699-83d9-1a9d2f3fe2ef
2024-08-26 23:42:35,849 - DEBUG - Requesting: http://10.0.0.30:8082/project/f09c5155-0e37-4ed3-a7b3-9ccdaa25c164
2024-08-26 23:42:35,916 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/b371af61-6bfc-4166-a33f-63f3f5cdfef0
2024-08-26 23:42:35,925 - DEBUG - ==>Verifying data for policy with id: 99198865-4b5a-48c6-ad38-15e454d7af69, fqn: ['default-domain', 'ctest-TestBasicPolicy-98891502', 'ctest-policy-allow-all-29859322']
2024-08-26 23:42:35,925 - INFO - VN ctest-vn-82058897 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 23:42:35,925 - DEBUG - Verifying the vn in opserver
2024-08-26 23:42:35,925 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897 virtual network link through opserver 10.0.0.30
2024-08-26 23:42:35,925 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-08-26 23:42:35,938 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897?flat'}
2024-08-26 23:42:35,938 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98891502:ctest-vn-82058897 is found in opserver
2024-08-26 23:42:35,949 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 23:42:35,954 - DEBUG - VRF ids for VN ctest-vn-82058897: {}
2024-08-26 23:42:36,011 - DEBUG - Services list from nova: [