2024-09-17 06:59:05,502 - INFO - Domain Default found not creating
2024-09-17 06:59:05,844 - INFO - Project ctest-TestBasicPolicy-43898586 not found, creating it
2024-09-17 06:59:06,508 - INFO - Created Project:ctest-TestBasicPolicy-43898586, ID : f2c7454d-3cd5-43b6-9499-99d0a8898b80
2024-09-17 06:59:08,773 - INFO - ================================================================================
2024-09-17 06:59:08,773 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 06:59:08,773 - 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-17 06:59:09,111 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.10': '0'}} with
2024-09-17 06:59:09,111 - INFO - Initial checks done. Running the testcase now
2024-09-17 06:59:09,111 - INFO -
2024-09-17 06:59:09,916 - DEBUG - Response for create_network : {'network': {'id': '1b296533-5035-4f93-bcb2-5e47e61030d7', 'name': 'ctest-vn-81609618', 'tenant_id': 'f2c7454d3cd543b6949999d0a8898b80', 'project_id': 'f2c7454d3cd543b6949999d0a8898b80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43898586', 'ctest-vn-81609618'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 06:59:10,225 - DEBUG - Response for create_subnet : {'subnet': {'id': '5bf00c79-46c4-478c-b858-d2aa4f374791', 'name': '', 'tenant_id': 'f2c7454d3cd543b6949999d0a8898b80', 'network_id': '1b296533-5035-4f93-bcb2-5e47e61030d7', 'ip_version': 4, 'cidr': '191.61.235.64/26', 'allocation_pools': [{'start': '191.61.235.66', 'end': '191.61.235.126'}], 'gateway_ip': '191.61.235.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.61.235.66', 'tags': [], 'project_id': 'f2c7454d3cd543b6949999d0a8898b80'}}
2024-09-17 06:59:10,251 - INFO - Created VN ctest-vn-81609618
2024-09-17 06:59:10,312 - DEBUG - VN ctest-vn-81609618 UUID is 1b296533-5035-4f93-bcb2-5e47e61030d7
2024-09-17 06:59:10,749 - DEBUG - Response for create_network : {'network': {'id': '6201d612-aa3e-42a1-ae48-600f88945a37', 'name': 'ctest-vn-28319991', 'tenant_id': 'f2c7454d3cd543b6949999d0a8898b80', 'project_id': 'f2c7454d3cd543b6949999d0a8898b80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43898586', 'ctest-vn-28319991'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 06:59:10,935 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c22ac4de-3732-48ec-ba10-012208445e23', 'name': '', 'tenant_id': 'f2c7454d3cd543b6949999d0a8898b80', 'network_id': '6201d612-aa3e-42a1-ae48-600f88945a37', 'ip_version': 4, 'cidr': '178.23.98.64/26', 'allocation_pools': [{'start': '178.23.98.66', 'end': '178.23.98.126'}], 'gateway_ip': '178.23.98.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.23.98.66', 'tags': [], 'project_id': 'f2c7454d3cd543b6949999d0a8898b80'}}
2024-09-17 06:59:10,958 - INFO - Created VN ctest-vn-28319991
2024-09-17 06:59:11,023 - DEBUG - VN ctest-vn-28319991 UUID is 6201d612-aa3e-42a1-ae48-600f88945a37
2024-09-17 06:59:11,214 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-81609618, 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-43898586:ctest-vn-28319991, 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-17 06:59:11,750 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b296533-5035-4f93-bcb2-5e47e61030d7', 'name': 'ctest-vn-81609618', 'tenant_id': 'f2c7454d3cd543b6949999d0a8898b80', 'project_id': 'f2c7454d3cd543b6949999d0a8898b80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5bf00c79-46c4-478c-b858-d2aa4f374791'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43898586', 'ctest-vn-81609618'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43898586', 'ctest-policy-allow-all-27540522']], 'subnet_ipam': [{'subnet_cidr': '191.61.235.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 06:59:12,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6201d612-aa3e-42a1-ae48-600f88945a37', 'name': 'ctest-vn-28319991', 'tenant_id': 'f2c7454d3cd543b6949999d0a8898b80', 'project_id': 'f2c7454d3cd543b6949999d0a8898b80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c22ac4de-3732-48ec-ba10-012208445e23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43898586', 'ctest-vn-28319991'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43898586', 'ctest-policy-allow-all-27540522']], 'subnet_ipam': [{'subnet_cidr': '178.23.98.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 06:59:12,348 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-17 06:59:12,704 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-17 06:59:12,762 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0fc95bb-2e41-4bb2-8b84-8e4ec5a6f967
2024-09-17 06:59:12,800 - DEBUG - Requesting: http://10.0.0.57:8082/project/f2c7454d-3cd5-43b6-9499-99d0a8898b80
2024-09-17 06:59:12,926 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b296533-5035-4f93-bcb2-5e47e61030d7
2024-09-17 06:59:12,957 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b296533-5035-4f93-bcb2-5e47e61030d7
2024-09-17 06:59:12,989 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/27cc287b-8ecc-4816-bb2b-9188f47934c2
2024-09-17 06:59:13,006 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/27cc287b-8ecc-4816-bb2b-9188f47934c2
2024-09-17 06:59:13,025 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/98f076cf-0cf8-47c7-ae2a-aca02c04086a
2024-09-17 06:59:13,046 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 06:59:13,047 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b296533-5035-4f93-bcb2-5e47e61030d7
2024-09-17 06:59:13,081 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/27cc287b-8ecc-4816-bb2b-9188f47934c2
2024-09-17 06:59:13,133 - INFO - Verified VN network id 7 for VN 1b296533-5035-4f93-bcb2-5e47e61030d7
2024-09-17 06:59:13,133 - INFO - Verifications in API Server for VN ctest-vn-81609618 passed
2024-09-17 06:59:13,133 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b296533-5035-4f93-bcb2-5e47e61030d7
2024-09-17 06:59:13,167 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/27cc287b-8ecc-4816-bb2b-9188f47934c2
2024-09-17 06:59:13,191 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/27cc287b-8ecc-4816-bb2b-9188f47934c2
2024-09-17 06:59:13,217 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/98f076cf-0cf8-47c7-ae2a-aca02c04086a
2024-09-17 06:59:13,260 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-81609618', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43898586', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1957206784132599699', 'uuid-lslong': '13597033887880458455'}, 'enable': 'true', 'created': '2024-09-17T06:59:09', 'last-modified': '2024-09-17T06:59:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.560151'}
2024-09-17 06:59:13,288 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 06:59:13,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81609618 passed
2024-09-17 06:59:13,289 - DEBUG - ====Verifying policy data for ctest-vn-81609618 in API_Server ======
2024-09-17 06:59:13,289 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-17 06:59:13,303 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0fc95bb-2e41-4bb2-8b84-8e4ec5a6f967
2024-09-17 06:59:13,323 - DEBUG - Requesting: http://10.0.0.57:8082/project/f2c7454d-3cd5-43b6-9499-99d0a8898b80
2024-09-17 06:59:13,466 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b296533-5035-4f93-bcb2-5e47e61030d7
2024-09-17 06:59:13,510 - DEBUG - ==>Verifying data for policy with id: 09c3e33f-2030-4465-821e-e35cefaa8e4e, fqn: ['default-domain', 'ctest-TestBasicPolicy-43898586', 'ctest-policy-allow-all-27540522']
2024-09-17 06:59:13,511 - INFO - VN ctest-vn-81609618 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 06:59:13,511 - DEBUG - Verifying the vn in opserver
2024-09-17 06:59:13,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-81609618 virtual network link through opserver 10.0.0.57
2024-09-17 06:59:13,511 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2024-09-17 06:59:13,855 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2024-09-17 06:59:13,958 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-81609618', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-81609618?flat'}
2024-09-17 06:59:13,958 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-81609618 is found in opserver
2024-09-17 06:59:13,991 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 06:59:14,006 - DEBUG - VRF ids for VN ctest-vn-81609618: {}
2024-09-17 06:59:14,006 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-17 06:59:14,018 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0fc95bb-2e41-4bb2-8b84-8e4ec5a6f967
2024-09-17 06:59:14,056 - DEBUG - Requesting: http://10.0.0.57:8082/project/f2c7454d-3cd5-43b6-9499-99d0a8898b80
2024-09-17 06:59:14,199 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6201d612-aa3e-42a1-ae48-600f88945a37
2024-09-17 06:59:14,235 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6201d612-aa3e-42a1-ae48-600f88945a37
2024-09-17 06:59:14,259 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/609fec16-a769-4cf2-b97c-f7e6cd2558af
2024-09-17 06:59:14,282 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/609fec16-a769-4cf2-b97c-f7e6cd2558af
2024-09-17 06:59:14,301 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4d75da30-f017-45ca-9d68-7bc81cc67808
2024-09-17 06:59:14,320 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 06:59:14,321 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6201d612-aa3e-42a1-ae48-600f88945a37
2024-09-17 06:59:14,367 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/609fec16-a769-4cf2-b97c-f7e6cd2558af
2024-09-17 06:59:14,437 - INFO - Verified VN network id 8 for VN 6201d612-aa3e-42a1-ae48-600f88945a37
2024-09-17 06:59:14,437 - INFO - Verifications in API Server for VN ctest-vn-28319991 passed
2024-09-17 06:59:14,437 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6201d612-aa3e-42a1-ae48-600f88945a37
2024-09-17 06:59:14,490 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/609fec16-a769-4cf2-b97c-f7e6cd2558af
2024-09-17 06:59:14,521 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/609fec16-a769-4cf2-b97c-f7e6cd2558af
2024-09-17 06:59:14,553 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/4d75da30-f017-45ca-9d68-7bc81cc67808
2024-09-17 06:59:14,597 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-28319991', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43898586', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7062161066347610785', 'uuid-lslong': '12558393180754827831'}, 'enable': 'true', 'created': '2024-09-17T06:59:10', 'last-modified': '2024-09-17T06:59:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.524275'}
2024-09-17 06:59:14,616 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 06:59:14,616 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28319991 passed
2024-09-17 06:59:14,616 - DEBUG - ====Verifying policy data for ctest-vn-28319991 in API_Server ======
2024-09-17 06:59:14,617 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-09-17 06:59:14,638 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0fc95bb-2e41-4bb2-8b84-8e4ec5a6f967
2024-09-17 06:59:14,683 - DEBUG - Requesting: http://10.0.0.57:8082/project/f2c7454d-3cd5-43b6-9499-99d0a8898b80
2024-09-17 06:59:14,829 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/6201d612-aa3e-42a1-ae48-600f88945a37
2024-09-17 06:59:14,873 - DEBUG - ==>Verifying data for policy with id: 09c3e33f-2030-4465-821e-e35cefaa8e4e, fqn: ['default-domain', 'ctest-TestBasicPolicy-43898586', 'ctest-policy-allow-all-27540522']
2024-09-17 06:59:14,873 - INFO - VN ctest-vn-28319991 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 06:59:14,873 - DEBUG - Verifying the vn in opserver
2024-09-17 06:59:14,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-28319991 virtual network link through opserver 10.0.0.57
2024-09-17 06:59:14,874 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2024-09-17 06:59:14,904 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-28319991', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-28319991?flat'}
2024-09-17 06:59:14,904 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43898586:ctest-vn-28319991 is found in opserver
2024-09-17 06:59:14,941 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 06:59:14,960 - DEBUG - VRF ids for VN ctest-vn-28319991: {}
2024-09-17 06:59:15,125 - DEBUG - Services list from nova: [