2024-08-21 11:53:18,297 - INFO - Domain Default found not creating
2024-08-21 11:53:18,482 - INFO - Project ctest-TestBasicPolicy-06843699 not found, creating it
2024-08-21 11:53:19,428 - INFO - Created Project:ctest-TestBasicPolicy-06843699, ID : 656ece0c-9529-482d-93a5-6fe6193b1974
2024-08-21 11:53:21,074 - INFO - ================================================================================
2024-08-21 11:53:21,074 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 11:53:21,074 - 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-21 11:53:21,361 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.22': '0'}} with
2024-08-21 11:53:21,361 - INFO - Initial checks done. Running the testcase now
2024-08-21 11:53:21,361 - INFO -
2024-08-21 11:53:21,968 - DEBUG - Response for create_network : {'network': {'id': 'ea189edf-e14a-433b-ad55-123330362878', 'name': 'ctest-vn-92904434', 'tenant_id': '656ece0c9529482d93a56fe6193b1974', 'project_id': '656ece0c9529482d93a56fe6193b1974', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06843699', 'ctest-vn-92904434'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 11:53:22,190 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8d0e534-3426-4ca1-9561-e807eeab3bf5', 'name': '', 'tenant_id': '656ece0c9529482d93a56fe6193b1974', 'network_id': 'ea189edf-e14a-433b-ad55-123330362878', 'ip_version': 4, 'cidr': '213.203.55.192/26', 'allocation_pools': [{'start': '213.203.55.194', 'end': '213.203.55.254'}], 'gateway_ip': '213.203.55.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.203.55.194', 'tags': [], 'project_id': '656ece0c9529482d93a56fe6193b1974'}}
2024-08-21 11:53:22,216 - INFO - Created VN ctest-vn-92904434
2024-08-21 11:53:22,273 - DEBUG - VN ctest-vn-92904434 UUID is ea189edf-e14a-433b-ad55-123330362878
2024-08-21 11:53:23,435 - DEBUG - Response for create_network : {'network': {'id': 'fd83bf9b-e87a-499f-bd1c-734dc414d922', 'name': 'ctest-vn-53055218', 'tenant_id': '656ece0c9529482d93a56fe6193b1974', 'project_id': '656ece0c9529482d93a56fe6193b1974', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06843699', 'ctest-vn-53055218'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 11:53:23,626 - DEBUG - Response for create_subnet : {'subnet': {'id': '7077be82-0b89-4cbf-bb9f-19e6845a2340', 'name': '', 'tenant_id': '656ece0c9529482d93a56fe6193b1974', 'network_id': 'fd83bf9b-e87a-499f-bd1c-734dc414d922', 'ip_version': 4, 'cidr': '156.66.179.0/26', 'allocation_pools': [{'start': '156.66.179.2', 'end': '156.66.179.62'}], 'gateway_ip': '156.66.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.66.179.2', 'tags': [], 'project_id': '656ece0c9529482d93a56fe6193b1974'}}
2024-08-21 11:53:23,647 - INFO - Created VN ctest-vn-53055218
2024-08-21 11:53:23,701 - DEBUG - VN ctest-vn-53055218 UUID is fd83bf9b-e87a-499f-bd1c-734dc414d922
2024-08-21 11:53:23,829 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-92904434, 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-06843699:ctest-vn-53055218, 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-21 11:53:24,142 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea189edf-e14a-433b-ad55-123330362878', 'name': 'ctest-vn-92904434', 'tenant_id': '656ece0c9529482d93a56fe6193b1974', 'project_id': '656ece0c9529482d93a56fe6193b1974', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8d0e534-3426-4ca1-9561-e807eeab3bf5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06843699', 'ctest-vn-92904434'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06843699', 'ctest-policy-allow-all-27468803']], 'subnet_ipam': [{'subnet_cidr': '213.203.55.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 11:53:24,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd83bf9b-e87a-499f-bd1c-734dc414d922', 'name': 'ctest-vn-53055218', 'tenant_id': '656ece0c9529482d93a56fe6193b1974', 'project_id': '656ece0c9529482d93a56fe6193b1974', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7077be82-0b89-4cbf-bb9f-19e6845a2340'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06843699', 'ctest-vn-53055218'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06843699', 'ctest-policy-allow-all-27468803']], 'subnet_ipam': [{'subnet_cidr': '156.66.179.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 11:53:24,589 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-21 11:53:24,890 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-21 11:53:24,923 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5804f0e4-b85e-4f82-aabe-70b8d2036d56
2024-08-21 11:53:24,942 - DEBUG - Requesting: http://10.0.0.41:8082/project/656ece0c-9529-482d-93a5-6fe6193b1974
2024-08-21 11:53:25,017 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ea189edf-e14a-433b-ad55-123330362878
2024-08-21 11:53:25,028 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ea189edf-e14a-433b-ad55-123330362878
2024-08-21 11:53:25,038 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4dd38a5f-b746-4ad8-8656-a429e923cbf2
2024-08-21 11:53:25,046 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4dd38a5f-b746-4ad8-8656-a429e923cbf2
2024-08-21 11:53:25,054 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c6861681-c656-4bbf-a26a-a0666cf0963c
2024-08-21 11:53:25,062 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 11:53:25,062 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ea189edf-e14a-433b-ad55-123330362878
2024-08-21 11:53:25,072 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4dd38a5f-b746-4ad8-8656-a429e923cbf2
2024-08-21 11:53:25,085 - INFO - Verified VN network id 7 for VN ea189edf-e14a-433b-ad55-123330362878
2024-08-21 11:53:25,086 - INFO - Verifications in API Server for VN ctest-vn-92904434 passed
2024-08-21 11:53:25,086 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ea189edf-e14a-433b-ad55-123330362878
2024-08-21 11:53:25,095 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4dd38a5f-b746-4ad8-8656-a429e923cbf2
2024-08-21 11:53:25,102 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/4dd38a5f-b746-4ad8-8656-a429e923cbf2
2024-08-21 11:53:25,111 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c6861681-c656-4bbf-a26a-a0666cf0963c
2024-08-21 11:53:25,127 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-92904434', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06843699', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16868407088710828859', 'uuid-lslong': '12489909152643426424'}, 'enable': 'true', 'created': '2024-08-21T11:53:21', 'last-modified': '2024-08-21T11:53:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.008491'}
2024-08-21 11:53:25,135 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 11:53:25,135 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92904434 passed
2024-08-21 11:53:25,136 - DEBUG - ====Verifying policy data for ctest-vn-92904434 in API_Server ======
2024-08-21 11:53:25,136 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-21 11:53:25,143 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5804f0e4-b85e-4f82-aabe-70b8d2036d56
2024-08-21 11:53:25,157 - DEBUG - Requesting: http://10.0.0.41:8082/project/656ece0c-9529-482d-93a5-6fe6193b1974
2024-08-21 11:53:25,231 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ea189edf-e14a-433b-ad55-123330362878
2024-08-21 11:53:25,239 - DEBUG - ==>Verifying data for policy with id: c8475b75-0e6a-411e-8399-1e72c04e706b, fqn: ['default-domain', 'ctest-TestBasicPolicy-06843699', 'ctest-policy-allow-all-27468803']
2024-08-21 11:53:25,239 - INFO - VN ctest-vn-92904434 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 11:53:25,239 - DEBUG - Verifying the vn in opserver
2024-08-21 11:53:25,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-92904434 virtual network link through opserver 10.0.0.41
2024-08-21 11:53:25,240 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-08-21 11:53:25,538 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-08-21 11:53:25,604 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-92904434', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-92904434?flat'}
2024-08-21 11:53:25,604 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-92904434 is found in opserver
2024-08-21 11:53:25,617 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 11:53:25,623 - DEBUG - VRF ids for VN ctest-vn-92904434: {}
2024-08-21 11:53:25,623 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-21 11:53:25,630 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5804f0e4-b85e-4f82-aabe-70b8d2036d56
2024-08-21 11:53:25,642 - DEBUG - Requesting: http://10.0.0.41:8082/project/656ece0c-9529-482d-93a5-6fe6193b1974
2024-08-21 11:53:25,715 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/fd83bf9b-e87a-499f-bd1c-734dc414d922
2024-08-21 11:53:25,727 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/fd83bf9b-e87a-499f-bd1c-734dc414d922
2024-08-21 11:53:25,738 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bfb5bf9f-7197-492a-8e38-dad57b996a1a
2024-08-21 11:53:25,748 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bfb5bf9f-7197-492a-8e38-dad57b996a1a
2024-08-21 11:53:25,757 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7798072b-24f2-4743-84df-d2bb36c7f754
2024-08-21 11:53:25,767 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 11:53:25,767 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/fd83bf9b-e87a-499f-bd1c-734dc414d922
2024-08-21 11:53:25,778 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bfb5bf9f-7197-492a-8e38-dad57b996a1a
2024-08-21 11:53:25,795 - INFO - Verified VN network id 8 for VN fd83bf9b-e87a-499f-bd1c-734dc414d922
2024-08-21 11:53:25,795 - INFO - Verifications in API Server for VN ctest-vn-53055218 passed
2024-08-21 11:53:25,795 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/fd83bf9b-e87a-499f-bd1c-734dc414d922
2024-08-21 11:53:25,804 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bfb5bf9f-7197-492a-8e38-dad57b996a1a
2024-08-21 11:53:25,813 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bfb5bf9f-7197-492a-8e38-dad57b996a1a
2024-08-21 11:53:25,821 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7798072b-24f2-4743-84df-d2bb36c7f754
2024-08-21 11:53:25,835 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-53055218', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06843699', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18267655189886028191', 'uuid-lslong': '13626893350355654946'}, 'enable': 'true', 'created': '2024-08-21T11:53:23', 'last-modified': '2024-08-21T11:53:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.475713'}
2024-08-21 11:53:25,842 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 11:53:25,842 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53055218 passed
2024-08-21 11:53:25,842 - DEBUG - ====Verifying policy data for ctest-vn-53055218 in API_Server ======
2024-08-21 11:53:25,842 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-08-21 11:53:25,849 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5804f0e4-b85e-4f82-aabe-70b8d2036d56
2024-08-21 11:53:25,862 - DEBUG - Requesting: http://10.0.0.41:8082/project/656ece0c-9529-482d-93a5-6fe6193b1974
2024-08-21 11:53:25,934 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/fd83bf9b-e87a-499f-bd1c-734dc414d922
2024-08-21 11:53:25,943 - DEBUG - ==>Verifying data for policy with id: c8475b75-0e6a-411e-8399-1e72c04e706b, fqn: ['default-domain', 'ctest-TestBasicPolicy-06843699', 'ctest-policy-allow-all-27468803']
2024-08-21 11:53:25,943 - INFO - VN ctest-vn-53055218 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 11:53:25,943 - DEBUG - Verifying the vn in opserver
2024-08-21 11:53:25,943 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-53055218 virtual network link through opserver 10.0.0.41
2024-08-21 11:53:25,943 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-08-21 11:53:25,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-53055218', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-53055218?flat'}
2024-08-21 11:53:25,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06843699:ctest-vn-53055218 is found in opserver
2024-08-21 11:53:25,967 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 11:53:25,972 - DEBUG - VRF ids for VN ctest-vn-53055218: {}
2024-08-21 11:53:26,034 - DEBUG - Services list from nova: [