2024-10-24 14:44:01,194 - INFO - Domain Default found not creating
2024-10-24 14:44:01,394 - INFO - Project ctest-TestBasicPolicy-53928346 not found, creating it
2024-10-24 14:44:01,906 - INFO - Created Project:ctest-TestBasicPolicy-53928346, ID : 6a891e09-dfbe-4639-920b-2955e6b70e96
2024-10-24 14:44:03,664 - INFO - ================================================================================
2024-10-24 14:44:03,664 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-24 14:44:03,665 - 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-10-24 14:44:03,926 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.8': '0'}} with
2024-10-24 14:44:03,926 - INFO - Initial checks done. Running the testcase now
2024-10-24 14:44:03,926 - INFO -
2024-10-24 14:44:04,618 - DEBUG - Response for create_network : {'network': {'id': 'de85490b-e20c-4707-be29-c08a8d58f16b', 'name': 'ctest-vn-24736312', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'project_id': '6a891e09dfbe4639920b2955e6b70e96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-vn-24736312'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 14:44:04,828 - DEBUG - Response for create_subnet : {'subnet': {'id': '99f81d78-f475-4cb8-9ef3-41d402f8b2aa', 'name': '', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'network_id': 'de85490b-e20c-4707-be29-c08a8d58f16b', 'ip_version': 4, 'cidr': '27.152.248.192/26', 'allocation_pools': [{'start': '27.152.248.194', 'end': '27.152.248.254'}], 'gateway_ip': '27.152.248.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.152.248.194', 'tags': [], 'project_id': '6a891e09dfbe4639920b2955e6b70e96'}}
2024-10-24 14:44:04,856 - INFO - Created VN ctest-vn-24736312
2024-10-24 14:44:04,922 - DEBUG - VN ctest-vn-24736312 UUID is de85490b-e20c-4707-be29-c08a8d58f16b
2024-10-24 14:44:05,269 - DEBUG - Response for create_network : {'network': {'id': 'e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2', 'name': 'ctest-vn-08662855', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'project_id': '6a891e09dfbe4639920b2955e6b70e96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-vn-08662855'], 'port_security_enabled': True, 'description': ''}}
2024-10-24 14:44:05,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '4194a29b-ada1-4f44-b67c-c7984cd023e7', 'name': '', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'network_id': 'e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2', 'ip_version': 4, 'cidr': '128.12.211.0/26', 'allocation_pools': [{'start': '128.12.211.2', 'end': '128.12.211.62'}], 'gateway_ip': '128.12.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.12.211.2', 'tags': [], 'project_id': '6a891e09dfbe4639920b2955e6b70e96'}}
2024-10-24 14:44:05,542 - INFO - Created VN ctest-vn-08662855
2024-10-24 14:44:05,606 - DEBUG - VN ctest-vn-08662855 UUID is e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2
2024-10-24 14:44:05,741 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312, 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-53928346:ctest-vn-08662855, 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-10-24 14:44:06,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de85490b-e20c-4707-be29-c08a8d58f16b', 'name': 'ctest-vn-24736312', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'project_id': '6a891e09dfbe4639920b2955e6b70e96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['99f81d78-f475-4cb8-9ef3-41d402f8b2aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-vn-24736312'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-policy-allow-all-20071703']], 'subnet_ipam': [{'subnet_cidr': '27.152.248.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 14:44:06,362 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2', 'name': 'ctest-vn-08662855', 'tenant_id': '6a891e09dfbe4639920b2955e6b70e96', 'project_id': '6a891e09dfbe4639920b2955e6b70e96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4194a29b-ada1-4f44-b67c-c7984cd023e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-vn-08662855'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-policy-allow-all-20071703']], 'subnet_ipam': [{'subnet_cidr': '128.12.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-24 14:44:06,545 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-24 14:44:06,891 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-24 14:44:06,930 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e
2024-10-24 14:44:06,947 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96
2024-10-24 14:44:07,040 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b
2024-10-24 14:44:07,057 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b
2024-10-24 14:44:07,075 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06
2024-10-24 14:44:07,085 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06
2024-10-24 14:44:07,097 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/f9efeb85-17a0-4232-ba54-28663d0b15ea
2024-10-24 14:44:07,106 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 14:44:07,106 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b
2024-10-24 14:44:07,121 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06
2024-10-24 14:44:07,146 - INFO - Verified VN network id 8 for VN de85490b-e20c-4707-be29-c08a8d58f16b
2024-10-24 14:44:07,146 - INFO - Verifications in API Server for VN ctest-vn-24736312 passed
2024-10-24 14:44:07,147 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b
2024-10-24 14:44:07,163 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06
2024-10-24 14:44:07,173 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/be04fd96-0961-4aa6-b5ed-bb672d5faa06
2024-10-24 14:44:07,184 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/f9efeb85-17a0-4232-ba54-28663d0b15ea
2024-10-24 14:44:07,200 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53928346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16034302363708442375', 'uuid-lslong': '13702695042560881003'}, 'enable': 'true', 'created': '2024-10-24T14:44:04', 'last-modified': '2024-10-24T14:44:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.142147'}
2024-10-24 14:44:07,208 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-24 14:44:07,208 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24736312 passed
2024-10-24 14:44:07,208 - DEBUG - ====Verifying policy data for ctest-vn-24736312 in API_Server ======
2024-10-24 14:44:07,208 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-24 14:44:07,215 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e
2024-10-24 14:44:07,231 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96
2024-10-24 14:44:07,325 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/de85490b-e20c-4707-be29-c08a8d58f16b
2024-10-24 14:44:07,343 - DEBUG - ==>Verifying data for policy with id: 7cd7dad7-c300-4916-a593-bd2233048cee, fqn: ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-policy-allow-all-20071703']
2024-10-24 14:44:07,343 - INFO - VN ctest-vn-24736312 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 14:44:07,343 - DEBUG - Verifying the vn in opserver
2024-10-24 14:44:07,343 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312 virtual network link through opserver 10.0.0.12
2024-10-24 14:44:07,343 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-10-24 14:44:07,694 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-10-24 14:44:07,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312?flat'}
2024-10-24 14:44:07,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-24736312 is found in opserver
2024-10-24 14:44:07,784 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 14:44:07,791 - DEBUG - VRF ids for VN ctest-vn-24736312: {}
2024-10-24 14:44:07,791 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-24 14:44:07,797 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e
2024-10-24 14:44:07,814 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96
2024-10-24 14:44:07,903 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2
2024-10-24 14:44:07,923 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2
2024-10-24 14:44:07,939 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5
2024-10-24 14:44:07,950 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5
2024-10-24 14:44:07,960 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/740b139c-7e08-4a1d-83d7-ebb099157f81
2024-10-24 14:44:07,970 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 14:44:07,970 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2
2024-10-24 14:44:07,985 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5
2024-10-24 14:44:08,012 - INFO - Verified VN network id 9 for VN e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2
2024-10-24 14:44:08,012 - INFO - Verifications in API Server for VN ctest-vn-08662855 passed
2024-10-24 14:44:08,012 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2
2024-10-24 14:44:08,031 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5
2024-10-24 14:44:08,042 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/225c3445-e23c-49ea-9ab0-734a4dbf9db5
2024-10-24 14:44:08,053 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/740b139c-7e08-4a1d-83d7-ebb099157f81
2024-10-24 14:44:08,071 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53928346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16434898778142687703', 'uuid-lslong': '12647418295865161650'}, 'enable': 'true', 'created': '2024-10-24T14:44:05', 'last-modified': '2024-10-24T14:44:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.745707'}
2024-10-24 14:44:08,080 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-24 14:44:08,081 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08662855 passed
2024-10-24 14:44:08,081 - DEBUG - ====Verifying policy data for ctest-vn-08662855 in API_Server ======
2024-10-24 14:44:08,081 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-10-24 14:44:08,089 - DEBUG - Requesting: http://10.0.0.12:8082/domain/9a75c930-0318-4427-8c89-47c31e9dcd1e
2024-10-24 14:44:08,106 - DEBUG - Requesting: http://10.0.0.12:8082/project/6a891e09-dfbe-4639-920b-2955e6b70e96
2024-10-24 14:44:08,193 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e4147d5c-e6b2-41d7-af84-a7ee62d1b7b2
2024-10-24 14:44:08,212 - DEBUG - ==>Verifying data for policy with id: 7cd7dad7-c300-4916-a593-bd2233048cee, fqn: ['default-domain', 'ctest-TestBasicPolicy-53928346', 'ctest-policy-allow-all-20071703']
2024-10-24 14:44:08,212 - INFO - VN ctest-vn-08662855 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-24 14:44:08,212 - DEBUG - Verifying the vn in opserver
2024-10-24 14:44:08,212 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855 virtual network link through opserver 10.0.0.12
2024-10-24 14:44:08,212 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-10-24 14:44:08,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855?flat'}
2024-10-24 14:44:08,228 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53928346:ctest-vn-08662855 is found in opserver
2024-10-24 14:44:08,242 - DEBUG - Do not have enough data to verify VN in agent
2024-10-24 14:44:08,249 - DEBUG - VRF ids for VN ctest-vn-08662855: {}
2024-10-24 14:44:08,324 - DEBUG - Services list from nova: [