2024-10-17 02:41:01,534 - INFO - Domain Default found not creating
2024-10-17 02:41:01,688 - INFO - Project ctest-TestBasicPolicy-37517131 not found, creating it
2024-10-17 02:41:02,181 - INFO - Created Project:ctest-TestBasicPolicy-37517131, ID : 888ca52b-febc-4cf6-984c-afb21eb43950
2024-10-17 02:41:03,700 - INFO - ================================================================================
2024-10-17 02:41:03,701 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-17 02:41:03,701 - 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-17 02:41:03,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.8': '0'}} with
2024-10-17 02:41:03,955 - INFO - Initial checks done. Running the testcase now
2024-10-17 02:41:03,955 - INFO -
2024-10-17 02:41:04,521 - DEBUG - Response for create_network : {'network': {'id': '36933e01-3450-4811-9fb2-f166b2d1be17', 'name': 'ctest-vn-60506804', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'project_id': '888ca52bfebc4cf6984cafb21eb43950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-vn-60506804'], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:41:04,754 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f40d884a-f84c-4984-b05f-b61be7df41fe', 'name': '', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'network_id': '36933e01-3450-4811-9fb2-f166b2d1be17', 'ip_version': 4, 'cidr': '121.59.67.192/26', 'allocation_pools': [{'start': '121.59.67.194', 'end': '121.59.67.254'}], 'gateway_ip': '121.59.67.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.59.67.194', 'tags': [], 'project_id': '888ca52bfebc4cf6984cafb21eb43950'}}
2024-10-17 02:41:04,773 - INFO - Created VN ctest-vn-60506804
2024-10-17 02:41:04,828 - DEBUG - VN ctest-vn-60506804 UUID is 36933e01-3450-4811-9fb2-f166b2d1be17
2024-10-17 02:41:05,130 - DEBUG - Response for create_network : {'network': {'id': '36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22', 'name': 'ctest-vn-36502581', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'project_id': '888ca52bfebc4cf6984cafb21eb43950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-vn-36502581'], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:41:05,368 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b6c73f2-9a94-4856-b0d2-1766919171c4', 'name': '', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'network_id': '36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22', 'ip_version': 4, 'cidr': '116.221.246.64/26', 'allocation_pools': [{'start': '116.221.246.66', 'end': '116.221.246.126'}], 'gateway_ip': '116.221.246.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.221.246.66', 'tags': [], 'project_id': '888ca52bfebc4cf6984cafb21eb43950'}}
2024-10-17 02:41:05,387 - INFO - Created VN ctest-vn-36502581
2024-10-17 02:41:05,444 - DEBUG - VN ctest-vn-36502581 UUID is 36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22
2024-10-17 02:41:05,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804, 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-37517131:ctest-vn-36502581, 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-17 02:41:05,897 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36933e01-3450-4811-9fb2-f166b2d1be17', 'name': 'ctest-vn-60506804', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'project_id': '888ca52bfebc4cf6984cafb21eb43950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f40d884a-f84c-4984-b05f-b61be7df41fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-vn-60506804'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-policy-allow-all-06356822']], 'subnet_ipam': [{'subnet_cidr': '121.59.67.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:41:06,139 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22', 'name': 'ctest-vn-36502581', 'tenant_id': '888ca52bfebc4cf6984cafb21eb43950', 'project_id': '888ca52bfebc4cf6984cafb21eb43950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5b6c73f2-9a94-4856-b0d2-1766919171c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-vn-36502581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-policy-allow-all-06356822']], 'subnet_ipam': [{'subnet_cidr': '116.221.246.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-17 02:41:06,320 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-10-17 02:41:06,617 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-10-17 02:41:06,646 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a
2024-10-17 02:41:06,660 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950
2024-10-17 02:41:06,745 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17
2024-10-17 02:41:06,762 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17
2024-10-17 02:41:06,777 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d
2024-10-17 02:41:06,788 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d
2024-10-17 02:41:06,798 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/cbbe5e7d-9116-43d1-9d95-7421f08b90bb
2024-10-17 02:41:06,806 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-17 02:41:06,806 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17
2024-10-17 02:41:06,820 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d
2024-10-17 02:41:06,841 - INFO - Verified VN network id 7 for VN 36933e01-3450-4811-9fb2-f166b2d1be17
2024-10-17 02:41:06,841 - INFO - Verifications in API Server for VN ctest-vn-60506804 passed
2024-10-17 02:41:06,841 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17
2024-10-17 02:41:06,855 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d
2024-10-17 02:41:06,865 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/12397df9-e2ff-447e-be1e-684c2d50177d
2024-10-17 02:41:06,875 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/cbbe5e7d-9116-43d1-9d95-7421f08b90bb
2024-10-17 02:41:06,890 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37517131', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3932555074518140945', 'uuid-lslong': '11507525421274086935'}, 'enable': 'true', 'created': '2024-10-17T02:41:04', 'last-modified': '2024-10-17T02:41:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030638'}
2024-10-17 02:41:06,897 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-17 02:41:06,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60506804 passed
2024-10-17 02:41:06,898 - DEBUG - ====Verifying policy data for ctest-vn-60506804 in API_Server ======
2024-10-17 02:41:06,898 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-10-17 02:41:06,904 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a
2024-10-17 02:41:06,917 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950
2024-10-17 02:41:07,018 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36933e01-3450-4811-9fb2-f166b2d1be17
2024-10-17 02:41:07,035 - DEBUG - ==>Verifying data for policy with id: 88e15f03-ebc3-4941-b380-1cc2cab52907, fqn: ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-policy-allow-all-06356822']
2024-10-17 02:41:07,035 - INFO - VN ctest-vn-60506804 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-17 02:41:07,036 - DEBUG - Verifying the vn in opserver
2024-10-17 02:41:07,036 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804 virtual network link through opserver 10.0.0.49
2024-10-17 02:41:07,036 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2024-10-17 02:41:07,345 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2024-10-17 02:41:07,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804?flat'}
2024-10-17 02:41:07,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-60506804 is found in opserver
2024-10-17 02:41:07,418 - DEBUG - Do not have enough data to verify VN in agent
2024-10-17 02:41:07,424 - DEBUG - VRF ids for VN ctest-vn-60506804: {}
2024-10-17 02:41:07,424 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-10-17 02:41:07,431 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a
2024-10-17 02:41:07,446 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950
2024-10-17 02:41:07,532 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22
2024-10-17 02:41:07,547 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22
2024-10-17 02:41:07,562 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d
2024-10-17 02:41:07,574 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d
2024-10-17 02:41:07,583 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/38b1b072-5830-428b-b572-098f0460a7ad
2024-10-17 02:41:07,591 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-17 02:41:07,591 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22
2024-10-17 02:41:07,605 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d
2024-10-17 02:41:07,626 - INFO - Verified VN network id 8 for VN 36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22
2024-10-17 02:41:07,626 - INFO - Verifications in API Server for VN ctest-vn-36502581 passed
2024-10-17 02:41:07,626 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22
2024-10-17 02:41:07,641 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d
2024-10-17 02:41:07,654 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/dae36535-d5fc-4068-89fa-045343a8468d
2024-10-17 02:41:07,664 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/38b1b072-5830-428b-b572-098f0460a7ad
2024-10-17 02:41:07,678 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37517131', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3951993668726769416', 'uuid-lslong': '11202769986504170530'}, 'enable': 'true', 'created': '2024-10-17T02:41:05', 'last-modified': '2024-10-17T02:41:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.575192'}
2024-10-17 02:41:07,684 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-17 02:41:07,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36502581 passed
2024-10-17 02:41:07,684 - DEBUG - ====Verifying policy data for ctest-vn-36502581 in API_Server ======
2024-10-17 02:41:07,684 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2024-10-17 02:41:07,690 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b9d451c2-5cff-4664-905c-4c82b7dd1a1a
2024-10-17 02:41:07,706 - DEBUG - Requesting: http://10.0.0.49:8082/project/888ca52b-febc-4cf6-984c-afb21eb43950
2024-10-17 02:41:07,786 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/36d84d4d-9b0d-4708-9b78-3bf2a9fd1c22
2024-10-17 02:41:07,802 - DEBUG - ==>Verifying data for policy with id: 88e15f03-ebc3-4941-b380-1cc2cab52907, fqn: ['default-domain', 'ctest-TestBasicPolicy-37517131', 'ctest-policy-allow-all-06356822']
2024-10-17 02:41:07,802 - INFO - VN ctest-vn-36502581 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-17 02:41:07,802 - DEBUG - Verifying the vn in opserver
2024-10-17 02:41:07,802 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581 virtual network link through opserver 10.0.0.49
2024-10-17 02:41:07,802 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2024-10-17 02:41:07,813 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581?flat'}
2024-10-17 02:41:07,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37517131:ctest-vn-36502581 is found in opserver
2024-10-17 02:41:07,823 - DEBUG - Do not have enough data to verify VN in agent
2024-10-17 02:41:07,828 - DEBUG - VRF ids for VN ctest-vn-36502581: {}
2024-10-17 02:41:07,883 - DEBUG - Services list from nova: [