2024-08-21 20:35:43,517 - INFO - Domain Default found not creating
2024-08-21 20:35:43,673 - INFO - Project ctest-TestBasicPolicy-98626819 not found, creating it
2024-08-21 20:35:44,147 - INFO - Created Project:ctest-TestBasicPolicy-98626819, ID : 54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3
2024-08-21 20:35:46,992 - INFO - ================================================================================
2024-08-21 20:35:46,992 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 20:35:46,992 - 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 20:35:47,256 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.10': '0'}} with
2024-08-21 20:35:47,256 - INFO - Initial checks done. Running the testcase now
2024-08-21 20:35:47,256 - INFO -
2024-08-21 20:35:49,028 - DEBUG - Response for create_network : {'network': {'id': '1dcf882c-ba04-48e4-8660-85e7078203ca', 'name': 'ctest-vn-31803255', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-vn-31803255'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 20:35:49,173 - DEBUG - Response for create_subnet : {'subnet': {'id': '47b802b8-fa9f-4a25-ac4a-144bf6919094', 'name': '', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'network_id': '1dcf882c-ba04-48e4-8660-85e7078203ca', 'ip_version': 4, 'cidr': '170.5.111.192/26', 'allocation_pools': [{'start': '170.5.111.194', 'end': '170.5.111.254'}], 'gateway_ip': '170.5.111.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.5.111.194', 'tags': [], 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3'}}
2024-08-21 20:35:49,193 - INFO - Created VN ctest-vn-31803255
2024-08-21 20:35:49,241 - DEBUG - VN ctest-vn-31803255 UUID is 1dcf882c-ba04-48e4-8660-85e7078203ca
2024-08-21 20:35:49,526 - DEBUG - Response for create_network : {'network': {'id': 'e4d70a88-ce02-4b41-995f-c12bddcd4854', 'name': 'ctest-vn-31803112', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-vn-31803112'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 20:35:49,736 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b05a230c-abaa-43af-bd20-aac06b6ac484', 'name': '', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'network_id': 'e4d70a88-ce02-4b41-995f-c12bddcd4854', 'ip_version': 4, 'cidr': '211.52.145.64/26', 'allocation_pools': [{'start': '211.52.145.66', 'end': '211.52.145.126'}], 'gateway_ip': '211.52.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.52.145.66', 'tags': [], 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3'}}
2024-08-21 20:35:49,756 - INFO - Created VN ctest-vn-31803112
2024-08-21 20:35:49,805 - DEBUG - VN ctest-vn-31803112 UUID is e4d70a88-ce02-4b41-995f-c12bddcd4854
2024-08-21 20:35:49,921 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255, 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-98626819:ctest-vn-31803112, 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 20:35:50,212 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1dcf882c-ba04-48e4-8660-85e7078203ca', 'name': 'ctest-vn-31803255', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47b802b8-fa9f-4a25-ac4a-144bf6919094'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-vn-31803255'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-policy-allow-all-47398173']], 'subnet_ipam': [{'subnet_cidr': '170.5.111.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 20:35:50,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4d70a88-ce02-4b41-995f-c12bddcd4854', 'name': 'ctest-vn-31803112', 'tenant_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'project_id': '54966b7f6c574e14a8e8f2b79ce0b7a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b05a230c-abaa-43af-bd20-aac06b6ac484'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-vn-31803112'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-policy-allow-all-47398173']], 'subnet_ipam': [{'subnet_cidr': '211.52.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 20:35:50,625 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 20:35:50,927 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 20:35:50,958 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28
2024-08-21 20:35:50,975 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3
2024-08-21 20:35:51,046 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca
2024-08-21 20:35:51,057 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca
2024-08-21 20:35:51,065 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6
2024-08-21 20:35:51,073 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6
2024-08-21 20:35:51,082 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1f42ba5f-4b9b-4e46-a4f4-4b95189b0b5c
2024-08-21 20:35:51,089 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 20:35:51,089 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca
2024-08-21 20:35:51,098 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6
2024-08-21 20:35:51,110 - INFO - Verified VN network id 8 for VN 1dcf882c-ba04-48e4-8660-85e7078203ca
2024-08-21 20:35:51,110 - INFO - Verifications in API Server for VN ctest-vn-31803255 passed
2024-08-21 20:35:51,111 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca
2024-08-21 20:35:51,121 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6
2024-08-21 20:35:51,131 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b9a7a494-1a3d-4c40-9363-a6f5bc0f9ca6
2024-08-21 20:35:51,139 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1f42ba5f-4b9b-4e46-a4f4-4b95189b0b5c
2024-08-21 20:35:51,154 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98626819', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2148085272959797476', 'uuid-lslong': '9682886426156467146'}, 'enable': 'true', 'created': '2024-08-21T20:35:48', 'last-modified': '2024-08-21T20:35:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961116'}
2024-08-21 20:35:51,163 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 20:35:51,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31803255 passed
2024-08-21 20:35:51,163 - DEBUG - ====Verifying policy data for ctest-vn-31803255 in API_Server ======
2024-08-21 20:35:51,163 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 20:35:51,169 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28
2024-08-21 20:35:51,182 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3
2024-08-21 20:35:51,254 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/1dcf882c-ba04-48e4-8660-85e7078203ca
2024-08-21 20:35:51,262 - DEBUG - ==>Verifying data for policy with id: 502405a1-b3f9-4e2f-aadd-04b6c6ae3ff1, fqn: ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-policy-allow-all-47398173']
2024-08-21 20:35:51,262 - INFO - VN ctest-vn-31803255 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 20:35:51,262 - DEBUG - Verifying the vn in opserver
2024-08-21 20:35:51,262 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255 virtual network link through opserver 10.0.0.42
2024-08-21 20:35:51,262 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-08-21 20:35:51,552 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-08-21 20:35:51,610 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255?flat'}
2024-08-21 20:35:51,610 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803255 is found in opserver
2024-08-21 20:35:51,622 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 20:35:51,627 - DEBUG - VRF ids for VN ctest-vn-31803255: {}
2024-08-21 20:35:51,628 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 20:35:51,634 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28
2024-08-21 20:35:51,646 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3
2024-08-21 20:35:51,719 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854
2024-08-21 20:35:51,729 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854
2024-08-21 20:35:51,737 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5
2024-08-21 20:35:51,744 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5
2024-08-21 20:35:51,751 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6121017d-c65c-41fd-9732-912d6c66dd16
2024-08-21 20:35:51,758 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 20:35:51,758 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854
2024-08-21 20:35:51,766 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5
2024-08-21 20:35:51,778 - INFO - Verified VN network id 9 for VN e4d70a88-ce02-4b41-995f-c12bddcd4854
2024-08-21 20:35:51,778 - INFO - Verifications in API Server for VN ctest-vn-31803112 passed
2024-08-21 20:35:51,778 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854
2024-08-21 20:35:51,789 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5
2024-08-21 20:35:51,798 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/6fba0356-4f9e-464f-8632-57b95cc395c5
2024-08-21 20:35:51,805 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/6121017d-c65c-41fd-9732-912d6c66dd16
2024-08-21 20:35:51,817 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98626819', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16489660143328447297', 'uuid-lslong': '11051764404739459156'}, 'enable': 'true', 'created': '2024-08-21T20:35:49', 'last-modified': '2024-08-21T20:35:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.383149'}
2024-08-21 20:35:51,824 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 20:35:51,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31803112 passed
2024-08-21 20:35:51,824 - DEBUG - ====Verifying policy data for ctest-vn-31803112 in API_Server ======
2024-08-21 20:35:51,824 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 20:35:51,830 - DEBUG - Requesting: http://10.0.0.42:8082/domain/d2534a5c-f5db-4e6a-be7f-4950a4648d28
2024-08-21 20:35:51,841 - DEBUG - Requesting: http://10.0.0.42:8082/project/54966b7f-6c57-4e14-a8e8-f2b79ce0b7a3
2024-08-21 20:35:51,910 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/e4d70a88-ce02-4b41-995f-c12bddcd4854
2024-08-21 20:35:51,919 - DEBUG - ==>Verifying data for policy with id: 502405a1-b3f9-4e2f-aadd-04b6c6ae3ff1, fqn: ['default-domain', 'ctest-TestBasicPolicy-98626819', 'ctest-policy-allow-all-47398173']
2024-08-21 20:35:51,919 - INFO - VN ctest-vn-31803112 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 20:35:51,919 - DEBUG - Verifying the vn in opserver
2024-08-21 20:35:51,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112 virtual network link through opserver 10.0.0.42
2024-08-21 20:35:51,919 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-08-21 20:35:51,930 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112?flat'}
2024-08-21 20:35:51,930 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98626819:ctest-vn-31803112 is found in opserver
2024-08-21 20:35:51,941 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 20:35:51,946 - DEBUG - VRF ids for VN ctest-vn-31803112: {}
2024-08-21 20:35:52,004 - DEBUG - Services list from nova: [